示例#1
0
function huodemem($shopuserid)
{
    $mysql_model = System::load_sys_class('model');
    $userid = $mysql_model->GetOne("select * from `@#_member` where `uid`='{$shopuserid}'");
    if ($userid['username']) {
        return $userid['username'];
    } else {
        if ($userid['mobile']) {
            return _strcut($userid['mobile'], 7);
        } else {
            return _strcut($userid['email'], 7);
        }
    }
}
示例#2
0
 public function create()
 {
     /*新建*/
     if (isset($_POST['submit'])) {
         $tag_name = $_POST['tag_name'];
         $tag_val = $this->TagParse(stripslashes($_POST['tag_val']));
         $tag_des = _strcut(htmlentities($_POST['tag_des'], ENT_NOQUOTES, "utf-8"), 30);
         if (empty($tag_name)) {
             _note("标签名不能为空");
         }
         $this->AddNewFile();
         include YYS_CACHES . 'caches_codes/tag.sys.package.php';
         $header = '<?php defined(\'IN_YYS\') or exit(\'Access Denied.\'); $TAG = Array(); ?><?php ' . PHP_EOL;
         $TAG[$tag_name] = $tag_des;
         $con = '$TAG = ' . var_export($TAG, true);
         $end = ";" . PHP_EOL;
         $val1 = file_put_contents(YYS_CACHES . 'caches_codes/tag.sys.package.php', $header . $con . $end);
         $str = "QWERTYUIOPLKJHGFDSAZXCVBNM";
         $qz = $str[rand(0, 25)] . $str[rand(0, 25)] . $str[rand(0, 25)] . $str[rand(0, 25)];
         $qz .= $str[rand(0, 25)] . $str[rand(0, 25)] . $str[rand(0, 25)] . $str[rand(0, 25)];
         $header = '<?php defined(\'IN_YYS\') or exit(\'Access Denied.\'); ?>' . PHP_EOL;
         $header .= '<?php ' . "return <<<" . $qz . PHP_EOL;
         $con = $tag_val;
         $end = PHP_EOL . $qz . ";" . PHP_EOL;
         $val2 = file_put_contents(YYS_CACHES . 'caches_codes/tag.' . $tag_name . '.php', $header . $con . $end);
         if (gettype($val1) != 'integer' || gettype($val2) != 'integer') {
             _note("失败");
         } else {
             _note("完成", G_ADMIN_PATH . "/htmlcustom/lists");
         }
     }
     $this->checkchmod();
     if (empty($_POST)) {
         include $this->dwt(DOWN_M, 'htmlcustom.create');
     }
 }
示例#3
0
    } else {
        ?>
					<img src="<?php 
        echo G_TEMPLATES_STYLE;
        ?>
/images/prmimg.jpg" width="30" height="30"/>
					<?php 
    }
    ?>
					<?php 
    if (uidcookie('username') != null) {
        echo _strcut(uidcookie('username'), 7);
    } elseif (uidcookie('mobile') != null) {
        echo _strcut(uidcookie('mobile'), 7);
    } else {
        echo _strcut(uidcookie('email'), 7);
    }
    ?>
				</a>&nbsp;&nbsp;
				<a href="<?php 
    echo WEB_PATH;
    ?>
/member/user/cook_end" class="gray01">[退出]</a>
			</li>
			<?php 
} else {
    ?>
			<li id="logininfo" class="h_login">
				<i>您好,欢迎光临!</i>				
				<a class="gray01" href="<?php 
    echo WEB_PATH;
示例#4
0
    <tbody>
    	<?php 
    foreach ($record as $v) {
        ?>
        	<tr>
                <td align="center"><?php 
        echo $v['code'];
        ?>
 <?php 
        if ($v['code_tmp']) {
            echo " <font color='#ff0000'>[多]</font>";
        }
        ?>
</td>
                <td align="center"><?php 
        echo _strcut($v['shopname'], 0, 25);
        ?>
</td>              
                <td align="center"><?php 
        echo $v['gonumber'];
        ?>
人次</td>
                <td align="center">¥<?php 
        echo $v['moneycount'];
        ?>
元</td>
                <td align="center"><?php 
        echo date("Y-m-d H:i:s", $v['time']);
        ?>
</td>
                <td align="center"><?php 
示例#5
0
 public function nei()
 {
     $id = abs(intval($this->segment(4)));
     if (!$id) {
         _message("页面错误");
     }
     $tiezi = $this->db->GetOne("select * from `@#_quanzi_tiezi` where `id`='{$id}'");
     if (!$tiezi) {
         _message("页面错误");
     }
     $dianji = $tiezi['dianji'] + 1;
     $this->db->Query("UPDATE `@#_quanzi_tiezi` SET `dianji`='{$dianji}' where `id`='{$id}'");
     $title = $tiezi['title'] . "_" . _cfg("web_name");
     $keywords = $tiezi['title'];
     $description = _strcut($tiezi['neirong'], 0, 250);
     $member = $this->db->GetOne("select * from `@#_member` where `uid`='{$tiezi['hueiyuan']}'");
     $quanzi = $this->db->GetOne("select * from `@#_quanzi` where `id` = '{$tiezi['qzid']}'");
     $num = 10;
     $total = $this->db->GetCount("select * from `@#_quanzi_hueifu` where `tzid` = '{$tiezi['id']}'");
     $page = System::load_sys_class('page');
     if (isset($_GET['p'])) {
         $pagenum = $_GET['p'];
     } else {
         $pagenum = 1;
     }
     $page->config($total, $num, $pagenum, "0");
     if ($pagenum > $page->page) {
         $pagenum = $page->page;
     }
     $hueifu = $this->db->GetPage("select * from `@#_quanzi_hueifu` WHERE tzid='{$tiezi['id']}' order by id DESC", array("num" => $num, "page" => $pagenum, "type" => 1, "cache" => 0));
     foreach ($hueifu as $key => $val) {
         $hueifu[$key]['hueifu'] = _htmtocode($hueifu[$key]['hueifu']);
     }
     include templates("group", "nei");
 }
示例#6
0
    ?>
</td>
			<td align="center"><?php 
    echo _strcut($v['title'], 12);
    ?>
</td>
			<td align="center"><?php 
    echo $v['width'];
    ?>
</td>
			<td align="center"><?php 
    echo $v['height'];
    ?>
</td>
			<td align="center"><?php 
    echo _strcut($v['des'], 16);
    ?>
</td>
			<td align="center">
				<a href="<?php 
    echo WEB_PATH;
    ?>
/admanage/admanage_admin/update_area/<?php 
    echo $v['id'];
    ?>
">修改</a>
                <span class='span_fenge lr5'>|</span>
				<a href="<?php 
    echo WEB_PATH;
    ?>
/admanage/admanage_admin/del_area/<?php 
示例#7
0
    </thead>
    <tbody>
	<?php 
foreach ($vote as $v) {
    ?>
	<tr align="center" class="mgr_tr">
		<td ><?php 
    echo $v['vote_id'];
    ?>
</td>
		<td><?php 
    echo $v['vote_title'];
    ?>
</td>
		<td><?php 
    echo _strcut($v['vote_number'], 25);
    ?>
</td>
		<td class="number"><?php 
    echo date('Y-m-d', $v['vote_starttime']);
    ?>
</td>
		<td><?php 
    echo date('Y-m-d', $v['vote_endtime']);
    ?>
</td>
		<td><?php 
    echo date('Y-m-d', $v['vote_sendtime']);
    ?>
</td>
		 
示例#8
0
                <td><?php 
    echo $v['id'];
    ?>
</td>
				<td><a href="<?php 
    echo G_MODULE_PATH;
    ?>
/content/article_list/<?php 
    echo $v['cateid'];
    ?>
"><?php 
    echo $this->categorys[$v['cateid']]['name'];
    ?>
</a></td>
                <td><?php 
    echo _strcut($v['title'], 0, 25);
    ?>
</td>
                <td><?php 
    echo $v['author'];
    ?>
</td>
                <td><?php 
    echo $v['hit'];
    ?>
</td>
                <td><?php 
    echo date("Y-m-d H:i:s", $v['posttime']);
    ?>
</td>
                <td class="action">
示例#9
0
</td>
                <td>第(<?php 
    echo $v['qishu'];
    ?>
)期 <span style="<?php 
    echo $v['title_style'];
    ?>
">
                <a target="_blank" href="<?php 
    echo WEB_PATH;
    ?>
/goods/<?php 
    echo $v['id'];
    ?>
"><?php 
    echo _strcut($v['title'], 30);
    ?>
</a></span></td>
                <td><a href="<?php 
    echo G_ADMIN_PATH;
    ?>
/content/goods_list/<?php 
    echo $v['cateid'];
    ?>
"><?php 
    echo $cate_name;
    ?>
</a></td>
                <td><font color="#ff0000"><?php 
    echo $v['canyurenshu'];
    ?>
                ?>
"><?php 
                echo $tiezi['title'];
                ?>
</a> 
				   <!--  <i class="jing"></i>&nbsp; -->
				   <?php 
            }
            ?>
					<span class="time"><?php 
            echo date("Y年m月d日 H:i", $tiezi['time']);
            ?>
</span>
				</div>
				<div class="gray02"><?php 
            echo _strcut($tiezi['neirong'], 160);
            ?>
</div>
				<div class="topic-reply">
					<div>
						<a href="<?php 
            echo WEB_PATH;
            ?>
/group/nei/<?php 
            echo $tiezi['id'];
            ?>
" class="gray02">回复<span class="gray03">(<?php 
            echo $tiezi['hueifu'];
            ?>
)</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="<?php 
示例#11
0
    ?>
</td>
		<td><?php 
    foreach ($quanzi as $qz) {
        if ($v['qzid'] == $qz['id']) {
            echo $qz['title'];
        }
    }
    ?>
</td>
		<td><?php 
    echo _strcut($v['title'], 25);
    ?>
</td>
		<td class="number"><?php 
    echo _strcut($v['neirong'], 25);
    ?>
</td>
		<td><?php 
    echo $v['hueifu'];
    ?>
</td>
		<td><?php 
    echo $v['dianji'];
    ?>
</td>		
		<td><?php 
    if ($v['zhiding'] == 'N') {
        echo "未置顶";
    } else {
        echo "置顶";
        ?>
" target="_blank"><?php 
        echo $Record['username'];
        ?>
</a></li>
			<li class="name"><a href="<?php 
        echo WEB_PATH;
        ?>
/goods/<?php 
        echo $Record['shopid'];
        ?>
">(第<?php 
        echo $Record['shopqishu'];
        ?>
雨)<?php 
        echo _strcut($Record['shopname'], 60, null);
        ?>
</a></li>
			<li class="much"><?php 
        echo $Record['gonumber'];
        ?>
人次</li>
		</ul>
        <?php 
    }
}
$ln++;
unset($ln);
?>
   
        
			<div class="groups-Rinfo"><!-- <?php 
        echo _strcut($tz['title'], 24, "");
        ?>
 -->
				<p class="groups-ht"><a href="<?php 
        echo WEB_PATH;
        ?>
/group/nei/<?php 
        echo $tz['id'];
        ?>
" class="gray"> <?php 
        echo $tz['title'];
        ?>
</a></p>
				<p class="groups-c gray02"><?php 
        echo _strcut(quanzid($tz['qzid']), 10);
        ?>
<span class="gray03"> | </span><?php 
        echo huifu($tz['id']);
        ?>
条回复</p>
			</div>
		</div>
		<?php 
    }
}
$ln++;
unset($ln);
?>
		<?php 
if (defined('G_IN_ADMIN')) {
        ?>
" target="_blank"><img src="<?php 
        echo G_UPLOAD_PATH;
        ?>
/<?php 
        echo $user['uphoto'];
        ?>
" border="0" width="20" height="20"></a>
				<a href="<?php 
        echo WEB_PATH;
        ?>
uname/<?php 
        echo idjia($user['uid']);
        ?>
" target="_blank" class="blue"><?php 
        echo _strcut($user['username'], 6);
        ?>
</a>
				<?php 
        if ($user['ip']) {
            ?>
				(<?php 
            echo get_ip($user['id'], 'ipcity');
            ?>
 IP:<?php 
            echo get_ip($user['id'], 'ipmac');
            ?>
)
				<?php 
        }
        ?>
            echo idjia($hf_for['sdhf_userid']);
            ?>
" target="_blank" class="name-img">									
									<img id="imgUserPhoto" src="<?php 
            echo G_UPLOAD_PATH;
            ?>
/<?php 
            echo $hf_for['sdhf_img'];
            ?>
" width="50" height="50" border="0"/>								
								</a>
								<p><a href="#" class="blue"><?php 
            echo $hf_for['sdhf_username'];
            ?>
</a>:&nbsp;<span><?php 
            echo _strcut($hf_for['sdhf_content'], 50);
            ?>
</span></p>
								</dd>
							<?php 
        }
        ?>
						</dl>
						<p class="text-h10"></p>
					</div>	
					<?php 
    }
}
$ln++;
unset($ln);
?>
示例#16
0
    ?>
		<tr>
			<td align="center"><?php 
    echo $v['id'];
    ?>
</td>
			<td align="center"><?php 
    echo $v['name'];
    ?>
</td>
			<td align="center"><?php 
    echo $v['type'] == 1 ? "文字" : "<font color='red'>图片</font>";
    ?>
</td>
			<td align="center"><?php 
    echo _strcut($v['logo'], 30);
    ?>
</td>
			<td align="center"><?php 
    echo $v['url'];
    ?>
</td>
			<td align="center">
				<a href="<?php 
    echo WEB_PATH;
    ?>
/admin/link/modifiylink/<?php 
    echo $v['id'];
    ?>
">修改</a>
                <span class='span_fenge lr5'>|</span>
                            <li class="sig-title">
                                <a href="<?php 
        echo WEB_PATH;
        ?>
/go/shaidan/detail/<?php 
        echo $sd['sd_id'];
        ?>
" target="_blank">
                                    <b><?php 
        echo $sd['sd_title'];
        ?>
</b>
                                </a>
                            </li>
                            <li class="sig-text"><?php 
        echo _strcut($sd['sd_content'], 100);
        ?>
</li>
                            <li class="sig-xmjdh">
                                <a href="<?php 
        echo WEB_PATH;
        ?>
/uname/<?php 
        echo $sd['sd_userid'];
        ?>
" target="_blank">
                                    <cite class="fl">
                                        <img src="<?php 
        echo G_UPLOAD_PATH;
        ?>
/<?php 
            ?>
期晒单</span><a href="<?php 
            echo WEB_PATH;
            ?>
/go/shaidan/detail/<?php 
            echo $v['sd_id'];
            ?>
" target="_blank"><?php 
            echo $v['sd_title'];
            ?>
</a>   <em class="gray02"><?php 
            echo date("Y-m-d", $v['sd_time']);
            ?>
</em></h3>
						<p class="gray01"><?php 
            echo _strcut($v['sd_content'], 220);
            ?>
</p>
					</div>
					<ul class="SingleR_pic">
						<li><img src2="http://postimg.1yyg.com/UserPost/Small/20131030121619093.jpg" border=0 /></li><li><img src2="http://postimg.1yyg.com/UserPost/Small/20131030121627718.jpg" border=0 /></li><li><img src2="http://postimg.1yyg.com/UserPost/Small/20131030121639453.jpg" border=0 /></li><li><img src2="http://postimg.1yyg.com/UserPost/Small/20131030121644250.jpg" border=0 /></li>
					</ul>
					<div class="SingleR_Comment" postID="2676" count="7">
						<div class="Comment_smile gray02"><span><i></i><?php 
            echo $v['sd_zhan'];
            ?>
人羡慕嫉妒恨</span><span><s></s><?php 
            echo $v['sd_ping'];
            ?>
条评论</span></div>
					</div>
示例#19
0
function userid($uid, $zhi)
{
    $mysql_model = System::load_sys_class('model');
    $member = $mysql_model->GetOne("select * from `@#_member` where `uid`='{$uid}'");
    if ($zhi == 'username') {
        if ($member['username'] != null) {
            return _strcut($member['username'], 8, "");
        } else {
            if ($member['mobile'] != null) {
                return _strcut($member['mobile'], 7, "");
            } else {
                return _strcut($member['email'], 7, "");
            }
        }
    } else {
        return $member[$zhi];
    }
}
示例#20
0
    ?>
</td>
		<td><?php 
    echo $v['title'];
    ?>
</td>
		<td><?php 
    echo get_user_name($v['guanli']);
    ?>
</td>
		<td><?php 
    echo _strcut($v['jianjie'], 25);
    ?>
</td>
		<td class="number"><?php 
    echo _strcut($v['gongao'], 25);
    ?>
</td>
		<td><?php 
    echo $v['chengyuan'];
    ?>
</td>
		<td><?php 
    echo $v['tiezi'];
    ?>
</td>
        <td><?php 
    echo $v['jiaru'] == 'Y' ? '会员可加入' : '会员不可加入';
    ?>
</td>
		<td><?php 
示例#21
0
    </thead>
    <tbody>
		<?php 
foreach ($arr as $v) {
    ?>
		<tr>
			<td align="center"><?php 
    echo $v['id'];
    ?>
</td>
			<td align="center"><?php 
    echo _strcut($v['title'], 12);
    ?>
</td>
			<td align="center"><?php 
    echo _strcut($v['name'], 12);
    ?>
</td>
			<td align="center">
			<?php 
    if ($v['type'] == "text") {
        echo "文字";
    } elseif ($v['type'] == "img") {
        echo "图片";
    } else {
        echo "代码";
    }
    ?>
			</td>
			<td align="center"><?php 
    echo date("Y-m-d", $v['addtime']);
示例#22
0
                echo $m['username'];
            } else {
                if ($m['mobile'] != null) {
                    echo $m['mobile'];
                } else {
                    if ($m['email'] != null) {
                        echo $m['email'];
                    }
                }
            }
        }
    }
    ?>
</td>
		<td><?php 
    echo _strcut($v['sdhf_content'], 50);
    ?>
</td>
		<td><?php 
    echo date("Y-m-d h:i", $v['sdhf_time']);
    ?>
</td>
		<td class="action"><span>[<a onClick="hueifu(<?php 
    echo $v['id'];
    ?>
)" href="javascript:;">删除</a>]</span></td>		
	</tr>
	<?php 
}
?>