예제 #1
0
function dell_slashes($data)
{
    foreach ($data as $key => $value) {
        if (is_array($value)) {
            dell_slashes($value);
        } else {
            $data[$key] = stripslashes($value);
        }
    }
    return $data;
}
예제 #2
0
*/
if (!defined("KQ_WORK")) {
    exit("非法操作");
}
if (!isset($_GET['id'])) {
    new Alert("非法操作", "back");
    exit;
} else {
    $id = setdefensesql($_GET['id']);
}
if (!permission("order")) {
    new Alert("没有权限操作", "back");
    exit;
}
$sqlshow = $conn->selectall("" . DB_EXT . "winmsg", "where kq_uuid='" . $id . "'");
$show_r = dell_slashes($conn->result($sqlshow));
//本页配置信息
$pagename = "获奖";
$backurl = "win_list";
$addname = '';
$btnaction = "";
//提交状态
$actionurl = "action/ac_update.php";
$actionmd5 = md5("win_update");
?>

<div id="urHere">管理中心 <b>&gt;</b> <strong><?php 
echo $pagename;
?>
更新</strong>
</div>
예제 #3
0
?>
" class="admin_form">
          <table id="kq" class="tableBasic" border="0" cellpadding="8" cellspacing="0" width="100%">
            <tbody>
              <tr>
                <th align="center" width="22"><input name="chkall" id="chkall" onclick="CheckAll(this.form)" value="check" type="checkbox"></th>
                <th align="center" width="40">编号</th>
                <th align="center" width="40">排序</th>
                <th align="left">名称</th>
                <th align="left">类型</th>
                <th align="center" width="120">操作</th>
              </tr>
              <?php 
if ($list_total > 0) {
    while ($list_r = $conn->result($list_sql)) {
        $list_r = dell_slashes($list_r);
        ?>
<tr>
                  <td align="center"><input name="checkbox[]" value="<?php 
        echo $list_r['kq_uuid'];
        ?>
" type="checkbox"></td>
                  <td align="center">
                  <input name="sort[]" type="text" value="<?php 
        echo $list_r['kq_sort'];
        ?>
" class="inpMain" id="sort[]" size="5" /></td>
 
                  <td align="center"><?php 
        echo $list_r['id'];
        ?>