ppt_add.php 886 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. require(dirname(__FILE__)."/config.php");
  3. CheckPurview('plus_幻灯管理');
  4. require_once DEDEINC."/typelink.class.php";
  5. if(empty($dopost))
  6. {
  7. $dopost = "";
  8. }
  9. if($dopost=="save")
  10. {
  11. //timeset orderid typeid pic url
  12. $orderid = trim($orderid);
  13. $query = "
  14. Insert Into #@__myppt(typeid,orderid,title,introduce,pic,url)
  15. Values('$typeid','$orderid','$title','$introduce','$pic','$url'); ";
  16. $dsql->ExecuteNoneQuery($query);
  17. ShowMsg("成功增加一个幻灯片!","ppt_main.php");
  18. exit();
  19. }
  20. $dsql->Execute('dd','SELECT * FROM `#@__myppttype` ORDER BY id DESC');
  21. $option = '';
  22. while($arr = $dsql->GetArray('dd'))
  23. {
  24. $option .= "<option value='{$arr['id']}'>{$arr['typename']}</option>\n\r";
  25. }
  26. $startDay = time();
  27. $endDay = AddDay($startDay,30);
  28. $startDay = GetDateTimeMk($startDay);
  29. $endDay = GetDateTimeMk($endDay);
  30. include DedeInclude('templets/ppt_add.htm');
  31. ?>