1新建Voteset.php文件<?php
include('../conn.php');
if(isset($_post['votename'])?$_post['votename']:""){
$votename = $_post['votename'];
$diedate = $_post['dieddate'];
$description = $_post['description'];
$type = $_post['mradio'];
$result = $db->query("update sysconfig set vote_name='$votename', dietime='$diedate', method='$type', description='$description' where cid='1';");
if($result){
echo "";
}else{
echo "";
}
}
$result = $db->query("select * from sysconfig where cid='1';");
$row = mysqli_fetch_assoc($result);
?>
html>
投票主题
">
投票描述
投票终止时间
" id="control_date" size="10" maxlength="10" onClick="new Calendar().show(this);" readonly="readonly" />
保存配置
页面如下所示: