Пример #1
0
<?php

require_once "../Config.Inc.php";
require_once "FCKediter.php";
$contactID = $_GET["contactID"];
$sql = "select * from about where id={$contactID}";
$rst = $conn->Execute($sql);
$smarty->assign("contactID", $rst->fields["id"]);
createEditer('contactContent', $rst->fields["cnContent"]);
$smarty->assign("aboutTitle", $rst->fields["cnTitle"]);
$smarty->assign("aboutPic", $rst->fields["image"]);
$close = new close($rst, $conn);
$smarty->display("Admin/ContactUs.tpl");
Пример #2
0
<?php

require_once 'Admin.Config.Inc.php';
require_once "FCKediter.php";
$id = 0;
$classID = 0;
if (isset($_GET["ID"])) {
    $id = $_GET["ID"];
}
$sql = "select * from service where id={$id}";
$rst = $conn->Execute($sql) or die("select error");
$smarty->assign("classID", $rst->fields["classID"]);
$smarty->assign("id", $rst->fields["id"]);
$smarty->assign("service_order", $rst->fields["service_order"]);
$smarty->assign("keywords", $rst->fields["keywords"]);
$smarty->assign("description", $rst->fields["description"]);
createEditer("content", $rst->fields["content"], 800);
$sql = "select * from class where firstID=2 order by orderby desc";
$rst = $conn->Execute($sql);
$classList = $rst->GetArray();
$smarty->assign("classList", $classList);
$close = new Close($rst, $conn);
$smarty->display("Admin/addservice.tpl");
Пример #3
0
<?php

if (isset($_GET["messageID"])) {
    require_once "Admin.Config.Inc.php";
    require_once "FCKediter.php";
    $messageID = $_GET["messageID"];
    $sql = "select * from message where messageID = {$messageID}";
    $rst = $conn->Execute($sql);
    $smarty->assign("messageUserName", $rst->fields["messageUserName"]);
    $smarty->assign("messageTel", $rst->fields["messageTel"]);
    $smarty->assign("messageEmail", $rst->fields["messageEmail"]);
    $smarty->assign("messageEmail", $rst->fields["messageEmail"]);
    createEditer("messageDemo", $rst->fields["messageDemo"], 800);
    $smarty->assign("messageDemo", $rst->fields["messageDemo"]);
    $close = new Close($rst, $conn);
    $smarty->display("Admin/ShowMessage.tpl");
} else {
    echo "<script language='javascript'>alert('请选择留言信息!');</script>";
}
Пример #4
0
<?php

require_once "../Config.Inc.php";
require_once "FCKediter.php";
$id = $_GET["id"];
$sql = "select * from about where id={$id}";
$rst = $conn->Execute($sql);
$smarty->assign("id", $rst->fields["id"]);
createEditer("content", $rst->fields["content"], "700");
$smarty->assign("title", $rst->fields["title"]);
$close = new close($rst, $conn);
$smarty->display("Admin/about.tpl");
Пример #5
0
<?php

require_once 'Admin.Config.Inc.php';
require_once "FCKediter.php";
$newsID = 0;
if (isset($_GET["newsID"])) {
    $newsID = $_GET["newsID"];
}
$sql = "select * from news where id={$newsID}";
$rst = $conn->Execute($sql) or die("select error");
$smarty->assign("newsID", $rst->fields["id"]);
$smarty->assign("newsClass", $rst->fields["newsClass"]);
$smarty->assign("newsTitle", $rst->fields["title"]);
if ($rst->fields["newsOrder"] == "") {
    $smarty->assign("newsOrder", "1");
} else {
    $smarty->assign("newsOrder", $rst->fields["newsOrder"]);
}
/*$smarty->assign("newsKeyWords",$rst->fields["newsKeyWords"]);
$smarty->assign("newsDescription",$rst->fields["newsDescription"]);*/
createEditer("newsContent", $rst->fields["newsContent"], 800);
$sql = "select * from newsclass order by classOrder desc";
$rst = $conn->Execute($sql);
$classList = $rst->GetArray();
$smarty->assign("classList", $classList);
$close = new Close($rst, $conn);
$smarty->display("Admin/AddNews.tpl");