<?php /** * wengdo后台编辑友链 * author: Jeffery * create time: 2015-09-09 */ require "../include/inic.php"; // 接收url参数 $id = isset($_GET["id"]) ? (int) $_GET["id"] : 0; $id_data = editTable("SELECT * FROM wd_friend_links WHERE friend_links_id={$id}"); // 表单接收 if ($_POST) { $friendName = $_POST["friendName"]; $friendDescription = $_POST["friendDescription"]; $friendLink = $_POST["friendLink"]; updateTable("UPDATE `wd_friend_links` SET \n\t\t`friend_title`='{$friendName}',\n\t\t`friend_description`='{$friendDescription}',\n\t\t`friend_links`='{$friendLink}' WHERE friend_links_id={$id}", "./friend_links.php"); } ?> <!doctype html> <html lang="zh-ch"> <!-- container-fluid --> <head> <title>文豆-后台管理</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="; charset=utf-8" /> <link rel="stylesheet" href="bootstrap.min.css" /> <link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_document WHERE document_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $content = trim($_POST["content"]) ? $_POST["content"] : ""; updateTable("UPDATE jl_document SET \n document_name='{$name}',\n document_content='{$content}' WHERE document_id={$id}", "./document.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?> <div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <!-- 更改即可 -->
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_news WHERE news_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $link = trim($_POST["link"]) ? $_POST["link"] : ""; $description = trim($_POST["description"]) ? $_POST["description"] : ""; $time = strtotime($_POST["time"]); updateTable("UPDATE jl_news SET \n news_name='{$name}',\n news_link='{$link}',\n news_time='{$time}',\n news_description='{$description}' WHERE news_id={$id}", "./news.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?>
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_friend WHERE friend_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $link = trim($_POST["link"]) ? $_POST["link"] : ""; updateTable("UPDATE jl_friend SET \r\n friend_name='{$name}',\r\n friend_link='{$link}' WHERE friend_id={$id}", "./friend.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?> <div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <!-- 更改即可 -->
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_notice WHERE notice_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $content = trim($_POST["content"]) ? $_POST["content"] : ""; $time = strtotime($_POST["time"]); updateTable("UPDATE jl_notice SET \r\n notice_name='{$name}',\r\n notice_time='{$time}',\r\n notice_content='{$content}' WHERE notice_id={$id}", "./notice.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="content" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?> <div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_products WHERE products_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $content = trim($_POST["products_content"]) ? $_POST["products_content"] : ""; if ($_FILES) { upload_file("img"); $img = $_FILES["img"]["name"]; } updateTable("UPDATE jl_products SET \r\n products_name='{$name}',\r\n products_img='{$img}',\r\n products_content='{$content}' WHERE products_id={$id}", "./products.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php
<?php /** * wengdo后台添加导航 * author: Jeffery * create time: 2015-09-08 */ require "../include/inic.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 0; $id_data = editTable("SELECT * FROM wd_nav WHERE nav_id={$id}"); // 表单接收 if ($_POST) { $navName = $_POST["navName"]; $navLink = $_POST["navLink"]; $nav_pid = $_POST["nav_pid"]; // 修改sql语句 updateTable("UPDATE `wd_nav` SET \n\t\t`nav_name`='{$navName}',\n\t\t`nav_pid`='{$navLink}',\n\t\t`nav_links`='{$nav_pid}' WHERE nav_id={$id}", "./nav.php"); } $navpiddata = selectDb("SELECT * FROM wd_nav WHERE nav_pid=0"); // var_dump($id_data); ?> <!doctype html> <html lang="zh-ch"> <!-- container-fluid --> <head> <title>文豆-后台管理</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="; charset=utf-8" />
<?php /** * wengdo后台添加案例 * author: Jeffery * create time: 2015-09-08 */ require "../include/inic.php"; // 接收url参数 $id = isset($_GET["id"]) ? (int) $_GET["id"] : 0; $id_data = editTable("SELECT * FROM wd_case WHERE case_id={$id}"); if ($_POST) { $caseName = $_POST["caseName"]; $caseLink = $_POST["caseLink"]; $caseDescription = $_POST["caseDescription"]; $caseTime = strtotime($_POST["caseTime"]); if ($_FILES) { upload_file("caseFileImg"); $caseFileImg = $_FILES["caseFileImg"]["name"]; } //插入sql语句 updateTable("UPDATE `wd_case` SET \n\t\t`case_title`='{$caseName}',\n\t\t`case_link`='{$caseLink}',\n\t\t`case_add_time`='{$caseTime}',\n\t\t`case_img_url`='{$caseFileImg}',\n\t\t`case_description`='{$caseDescription}' WHERE case_id={$id}", "./products.php"); } ?> <!doctype html> <html lang="zh-ch"> <!-- container-fluid --> <head> <title>文豆-后台管理</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
echo '</div>'; } } } if (isset($_POST['add'])) { if (addTable()) { $path = sprintf('location: ' . HTTP_PATH . 'public/views/%s.php', $_POST['page']); header($path); } else { echo 'something went wrong!'; } var_dump($_POST); die; } if (isset($_POST['edit'])) { if (editTable()) { $path = sprintf('location: ' . HTTP_PATH . 'public/views/%s.php', $_POST['page']); unset($_POST['edit']); header($path); die; } else { echo 'something went wrong!'; } } if (isset($view)) { switch ($view) { case 'delete': if (deleteTable()) { $path = sprintf('location: ' . HTTP_PATH . 'public/views/%s.php', $_POST['page']); header($path); }
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_meg WHERE meg_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $content = trim($_POST["content"]) ? $_POST["content"] : ""; updateTable("UPDATE jl_meg SET \n meg_name='{$name}',\n meg_content='{$content}' WHERE meg_id={$id}", "./meg.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?> <div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <!-- 更改即可 -->
<?php //editmodal comes here //editmodal comes here include 'dbquery.php'; if (isset($_POST['id']) && isset($_POST['fullname']) && isset($_POST['email']) && isset($_POST['designation']) && isset($_POST['created_on']) && isset($_POST['last_login']) && isset($_POST['pass']) && isset($_POST['user'])) { $ret = editTable($_POST['id'], $_POST['fullname'], $_POST['email'], $_POST['designation']); if ($ret == true) { echo "<script>window.location.href='userinfo.php'</script>"; } else { echo "Edit Unsuccessful"; } }
<?php /** * wengdo后台添加用户 * author: Jeffery * create time: 2015-09-08 */ require "../include/inic.php"; // 接收url参数 $id = isset($_GET["id"]) ? (int) $_GET["id"] : 0; $id_data = editTable("SELECT * FROM wd_register WHERE register_id={$id}"); // 表单接收 if ($_POST) { $username = $_POST["username"]; $password = $_POST["password"]; $email = $_POST["email"]; $description = $_POST["description"]; $gender = $_POST["gender"]; $add_time = strtotime($_POST["add_time"]); updateTable("UPDATE `wd_register` SET `register_name`='{$username}',`register_password`='{$password}',`register_email`='{$email}',`register_gender`='{$gender}',`register_per_products`='{$description}',`register_add_time`='{$add_time}' WHERE register_id={$id}", "./user_gl.php"); } ?> <!doctype html> <html lang="zh-ch"> <!-- container-fluid --> <head> <title>文豆-后台管理</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php require "../include/init/init.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 1; // 查询数据 $dataselect = editTable("SELECT * FROM jl_nav WHERE nav_id={$id}"); if ($_POST) { $name = trim($_POST["name"]) ? $_POST["name"] : ""; $link = trim($_POST["link"]) ? $_POST["link"] : ""; $order = trim($_POST["order"]) ? $_POST["order"] : ""; updateTable("UPDATE jl_nav SET \n nav_name='{$name}',\n nav_link='{$link}',\n nav_order='{$order}' WHERE nav_id={$id}", "./nav.php"); } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href=""> <title>金陵后台管理</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/dashboard.css" rel="stylesheet"> </head> <body> <?php require "../include/admin_header.php"; ?> <div class="col-sm-12 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<?php /** * functions call to display all fire fighters * Requires the functions.php script as well as * header.php and footer.php. Directs the user to * the login if not logged in and the display fire * fighter table if session is logged in. * *@author Alphabit Soup */ require 'functions.php'; require 'header.php'; echo '<div class="container">'; if (isset($_SESSION['loggedin'])) { echo editTable(); } else { header('Location: ./login.php'); } echo '</div>';
<?php /** * wengdo后台添加文章 * author: Jeffery * create time: 2015-09-08 */ require "../include/inic.php"; $id = isset($_GET["id"]) ? (int) $_GET["id"] : 0; $id_data = editTable("SELECT * FROM wd_article WHERE article_id={$id}"); // 表单接收 if ($_POST) { $articleName = $_POST["articleName"]; $articleLink = $_POST["articleLink"]; $articleAuthor = $_POST["articleAuthor"]; // 修改sql语句 updateTable("UPDATE `wd_article` SET \n\t\t`article_title`='{$articleName}',\n\t\t`article_author`='{$articleAuthor}',\n\t\t`article_links`='{$articleLink}' WHERE article_id={$id}", "./article.php"); } ?> <!doctype html> <html lang="zh-ch"> <!-- container-fluid --> <head> <title>文豆-后台管理</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="; charset=utf-8" /> <link rel="stylesheet" href="bootstrap.min.css" /> <link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />