コード例 #1
0
ファイル: poll.inc.php プロジェクト: hiproz/zhaotaoci.cc
         $poll_cols = 3;
         $poll_order = 0;
         $thumb_width = 120;
         $thumb_height = 90;
         $addtime = timetodate($DT_TIME);
         $typeid = 0;
         $menuid = 0;
         include tpl('poll_edit', $module);
     }
     break;
 case 'edit':
     $itemid or msg();
     $do->itemid = $itemid;
     if ($submit) {
         if ($do->pass($post)) {
             $do->edit($post);
             dmsg('修改成功', $forward);
         } else {
             msg($do->errmsg);
         }
     } else {
         extract($do->get_one());
         $addtime = timetodate($addtime);
         $fromtime = $fromtime ? timetodate($fromtime, 3) : '';
         $totime = $totime ? timetodate($totime, 3) : '';
         $menuid = 1;
         include tpl('poll_edit', $module);
     }
     break;
 case 'html':
     $all = isset($all) && $all ? 1 : 0;