function parselinkdata($linkdata) { $info = array(); for ($i = 0; $i < $linkdata['count']; $i++) { $detail = getdetail($linkdata['data'][$i][1]); $typeid = explode('-', rtrim($linkdata['data'][$i][1], '.html')); $typeid = $typeid[2]; $info[$i]['area'] = $detail['PROVINCE'] . $detail['CITY']; $info[$i]['typeid'] = $typeid; $info[$i]['type'] = $detail['SIGNALTYPE'] . $detail['SIGNALLEVEL']; $info[$i]['time'] = strtotime($detail['ISSUETIME']); $info[$i]['content'] = $detail['ISSUECONTENT']; $info[$i]['picurl'] = getpicurl($typeid); // $info[$i]['measures'] = getmeasures($typeid); } return $info; }
?> &order=expira">Expires</a></td> <td class="hilightoff" onMouseOver="className='hilighton';" onMouseOut="className='hilightoff';" ><a href ="?start=<?php echo $_GET['start']; ?> &order=control">Last Control</a></td> <td>Register</td> <td></td> </tr> <?php while ($rows = mysql_fetch_array($results)) { $h_id++; echo "<tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\"> <td>"; echo $h_id; echo "</td><td><a href=\"" . getdetail($rows[domain], $detail_server) . "\" target=\"_blank\">" . $rows[domain] . " <img src=\"new-win-icon.gif\" border=\"0\" align=\"absmiddle\" /> </a>"; echo "</td><td>" . $rows[status1]; echo "</td><td>" . $rows[create_date]; echo "</td><td>" . $rows[update_date]; echo "</td><td>" . $rows[expirate_date]; echo "</td><td>" . $rows[hunter_update]; echo "</td><td>" . $rows[register]; echo "</td><td>"; echo "<input name=\"delete[" . $rows[id] . "]\" type=\"submit\" id=\"delete\" style=\"width:50px\" "; echo "value=\"delete\" class=\"button\" />"; echo "</td></tr>\n\n"; } ?> </table> </form> <?php
<?php require '../connection.php'; require '../session.php'; if (isset($_SESSION['id']) && !empty($_SESSION['id'])) { if (getdetail('role') != "teacher") { echo "You are not authorized to access this page."; die; } } else { header('location:../login.php'); } // for reference purpose only. // Description of diffrent type of errors that can be there // during uploading a file. $upload_errors = array(UPLOAD_ERR_OK => "No errors.", UPLOAD_ERR_INI_SIZE => "Larger than upload_max_filesize.", UPLOAD_ERR_FORM_SIZE => "Larger than form MAX_FILE_SIZE.", UPLOAD_ERR_PARTIAL => "Partial upload.", UPLOAD_ERR_NO_FILE => "No file.", UPLOAD_ERR_NO_TMP_DIR => "No temporary directory.", UPLOAD_ERR_CANT_WRITE => "Can't write to disk.", UPLOAD_ERR_EXTENSION => "File upload stopped by extension."); $user_id = 1; // get from the login id (sessions) if (isset($_POST['submit'])) { // Assigning values to variables $file = $_FILES['upload']; $temp_name = $file['tmp_name']; $filename = $file['name']; $filename_render = $filename; $type = $file['type']; $size = $file['size']; $upload_dir = "notes"; $upload_file = $upload_dir . basename($_FILES["upload"]["name"]); $uploadOk = 1; $ext = pathinfo($upload_file, PATHINFO_EXTENSION); $filename_render_ext = $filename_render;
$news[] = array('title' => "您上一次查询的单号为:【" . $msg . "】", 'description' => '', 'url' => $url); foreach ($arr as $v) { $news[] = array('title' => $v, 'description' => '', 'url' => $url); } $news[] = array('title' => "如果您要查询别的单号,请直接输入单号,回复【退出】退出本对话", 'description' => '', 'url' => $url); $reply = $news; } } else { $type = 'express'; typeupdate($type, $weid, $openid); $replys = '快递信息查询如下'; $reply = getdetail($msg); if (!$reply) { $reply = '快递公司参数异常:单号不存在或者已经过期,请核对后再试或进入网站查询 <a href="http://m.kuaidi100.com">点击查询</a>'; } else { $arr = getdetail($msg); $news = array(); $news[] = array('title' => "欢迎查询:", 'description' => '', 'picurl' => $imgurl . '/kuaidi.jpg', 'url' => $url); $news[] = array('title' => "您查询的单号为:【" . $msg . "】", 'description' => '', 'url' => $url); foreach ($arr as $v) { $news[] = array('title' => $v, 'description' => '', 'url' => $url); } $news[] = array('title' => "如果您要查询别的单号,请直接输入单号,回复【退出】退出本对话", 'description' => '', 'url' => $url); $reply = $news; keyupdate($msg, $type, $weid, $openid); } } /* --------------------------------------- 华丽的分割线
if (insert_data($array, $db)) { echo "<script>alert('ユーザーを作成しました。')</script>"; header("refresh: 0"); exit; } else { header("location: " . ROOT . "error.html"); exit; } } } if ($_SERVER['REQUEST_URI'] == "/kintai/user_list.php") { // nothing } else { if (isset($_GET['id'])) { $edit_id = $_GET['id']; $user_detail = getdetail($edit_id, $db); } else { if (isset($_GET['del_id'])) { $delete_id = $_GET['del_id']; if (!delete_user($delete_id, $db)) { header("location: " . ROOT . "error.html"); exit; } else { //echo "<script>alert('User has been removed.')</script>"; header("location: " . ROOT . "admin/user_list.php"); exit; } } } } if (isset($_POST['edit'])) {