Example #1
0
$procaid = makeselect($arr_nav_procaname, $procaid, $arr_nav_procaid);
$query = "select  fd_trademark_id ,fd_trademark_name  from tb_trademark   order by fd_trademark_id";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_nav_trademarkid[] = $db->f(fd_trademark_id);
        $arr_nav_trademarkname[] = $db->f(fd_trademark_name);
    }
}
// echo $trademarkid;
$trademarkid = makeselect($arr_nav_trademarkname, $trademarkid, $arr_nav_trademarkid);
//显示列表
$t->set_block("template", "prolist", "prolists");
$scatid = "5";
$dateid = $listid;
$getFileimg = new AutogetFile();
$propiclist = explode("@@", $getFileimg->AutogetFileimg(5, $dateid));
//echo $propiclist[0];
$count++;
//记录数
$propic = $propiclist[0];
$vid = $propiclist[1];
$vpic = "<img  src='" . $propic . "' href='" . $propic . "' class='group2' title='" . $vtitle . "'  width='50' height='50'>";
$vdef = $propiclist[$i]['display'];
$vdef = '<a href="#" onClick="del_p(' . $vid . ')">删除</a>';
$count++;
$trid = "tr" . $count;
$imgid = "img" . $count;
if ($s == 1) {
    $bgcolor = "#F1F4F9";
    $s = 0;
Example #2
0
<?php

$thismenucode = "2k304";
require "../include/common.inc.php";
require "../FCKeditor/fckeditor.php";
require "../function/AutogetFileimg.php";
require "../third_api/readshopname.php";
$getFileimg = new AutogetFile();
$db = new DB_test();
$gourl = "tb_author_stop_b.php";
$gotourl = $gourl . $tempurl;
require "../include/alledit.1.php";
switch ($action) {
    case "save":
        $phone = $_POST[FCKeditor1];
        $query = "select * from tb_author where fd_author_username='******' and fd_author_id<>'{$listid}'";
        $db->query($query);
        if ($db->nf()) {
            $error = "用户名有冲突,请重新查证!";
        } else {
            $query = "update tb_author set \n\t\t\t           fd_author_state='{$state}' ,\n\t\t\t           fd_author_mobile='{$mobile}' ,\n\t\t\t\t\t   fd_author_idcard='{$idcard}',\n\t\t\t\t\t   fd_author_email='{$email}',\n\t\t\t\t\t   fd_author_isstop='{$isstop}',\n\t\t\t\t\t   fd_author_state = '{$state}',\n\t\t\t\t\t   fd_author_sdcrid = '{$sdcrid}',\n\t\t\t\t\t   fd_author_auindustryid = '{$auindustryid}',\n\t\t               fd_author_slotpayfsetid = '{$slotpayfsetid}',\n\t\t               fd_author_slotscdmsetid = '{$slotscdmsetid}',\n\t\t\t\t\t   fd_author_bkcardpayfsetid='{$bkcardpayfsetid}',\n\t\t\t\t\t   fd_author_bkcardscdmsetid='{$bkcardscdmsetid}',\n\t\t\t\t\t   fd_author_sdcrid = '{$sdcrid}'  where fd_author_id='{$listid}'";
            $db->query($query);
            //echo $query;
            if ($password) {
                $password = md5($password);
                $query = "update  tb_author set fd_author_password = '******' where fd_author_id = '{$listid}'";
                $db->query($query);
            }
            require "../include/alledit.2.php";
            //Header("Location: author_sp.php?list=$listid");
        }
Example #3
0
$query = "select fd_supplierlogo_id,fd_supplogo_suppid,fd_supplogo_suppname,fd_supplogo_tuijian from web_conf_supplierlogo \n  {$querywhere} order by fd_supplogo_tuijian desc ";
$db->query($query);
$total = $db->nf();
pageft($total, 7, $str_url);
if ($firstcount < 0) {
    $firstcount = 0;
}
$query = "{$query} limit {$firstcount},{$displaypg}";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $fd_supplierlogo_id = $db->f(fd_supplierlogo_id);
        $fd_supplogo_suppid = $db->f(fd_supplogo_suppid);
        $fd_supplogo_suppname = $db->f(fd_supplogo_suppname);
        $fd_supplogo_tuijian = $db->f(fd_supplogo_tuijian);
        $getFileimg = new AutogetFile();
        $csp_get_img = explode("@@", $getFileimg->AutogetFileimg($scatid, $fd_supplierlogo_id));
        $thumimg = $csp_get_img[0];
        $thumimg = $thumimg ? "<img src='" . $thumimg . "' width=120 height=50/>" : "";
        $tuijian = $fd_supplogo_tuijian == '1' ? "推荐" : "";
        $edit = '<a href="#" onclick=uploadimg("' . $scatid . '","' . $fd_supplierlogo_id . '","","uploadfile","new","refeedback","preuploadfile",this); id="uploadfilecolorbox' . $fd_supplierlogo_id . '" >上传</a> | ';
        $edit .= $fd_supplogo_tuijian == '1' ? '<a href="#" onClick=edit_p("' . $fd_supplierlogo_id . '",0)>取消推荐</a>' : '<a href="#" onClick=edit_p("' . $fd_supplierlogo_id . '","1")>设为推荐</a>';
        $t->set_var(array("fd_supplierlogo_id" => $fd_supplierlogo_id, "fd_supplogo_suppid" => $fd_supplogo_suppid, "fd_supplogo_suppname" => $fd_supplogo_suppname, "tuijian" => $tuijian, "thum" => $thumimg, "edit" => $edit));
        $t->set_var("none", "");
        $t->parse("bxbks", "BXBK", true);
    }
} else {
    $t->set_var(array("fd_supplierlogo_id" => "", "fd_supplogo_suppid" => "", "thum" => "", "edit" => ""));
    $t->set_var("none", "none");
    $t->parse("bxbks", "BXBK", true);
}