code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: magic_color.inc.php 9806 2007-08-15 06:04:37Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if(submitcheck('usesubmit')) {
if(empty($highlight_color)) {
showmessage('magics_info_nonexistence');
}
$thread = getpostinfo($tid, 'tid', array('fid'));
checkmagicperm($magicperm['forum'], $thread['fid']);
magicthreadmod($tid);
$db->query("UPDATE {$tablepre}threads SET highlight='$highlight_color', moderated='1' WHERE tid='$tid'", 'UNBUFFERED');
$expiration = $timestamp + 86400;
usemagic($magicid, $magic['num']);
updatemagiclog($magicid, '2', '1', '0', $tid);
updatemagicthreadlog($tid, $magicid, $magic['identifier'], $expiration);
showmessage('magics_operation_succeed', 'magic.php?action=user');
}
function showmagic() {
global $tid, $lang;
magicshowtype($lang['option'], 'top');
magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
magicshowsetting($lang['CCK_color'], '', '', '<table border="0" cellspacing="0" cellpadding="0"><tr>
<td><input type="radio" class="radio" name="highlight_color" value="1" checked="checked" /></td><td width="20" bgcolor="red"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="2" /></td><td width="20" bgcolor="orange"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="3" /></td><td width="20" bgcolor="yellow"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="4" /></td><td width="20" bgcolor="green"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="5" /></td><td width="20" bgcolor="cyan"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="6" /></td><td width="20" bgcolor="blue"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="7" /></td><td width="20" bgcolor="purple"> </td>
<td> <input type="radio" class="radio" name="highlight_color" value="8" /></td><td width="20" bgcolor="gray"> </td>
</tr></table>');
magicshowtype('', 'bottom');
}
?> | zyyhong | trunk/jiaju001/bbs/include/magic/magic_color.inc.php | PHP | asf20 | 2,251 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: magic_move.inc.php 9806 2007-08-15 06:04:37Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if(submitcheck('usesubmit')) {
if(empty($tid) && empty($moveto)) {
showmessage('magics_info_nonexistence');
}
$thread = getpostinfo($tid, 'tid', array('fid', 'tid', 'authorid', 'special'));
checkmagicperm($magicperm['forum'], $thread['fid']);
if($thread['authorid'] != $discuz_uid) {
showmessage('magics_operation_nopermission');
}
if($thread['special']) {
$query = $db->query("SELECT allowpostspecial FROM {$tablepre}forums WHERE fid='$moveto'");
if(!substr(sprintf('%04b', $forum['allowpostspecial']), -$thread['special'], 1)) {
showmessage('admin_move_nopermission');
}
}
$query = $db->query("SELECT postperm FROM {$tablepre}forumfields WHERE fid='$moveto'");
if($forum = $db->fetch_array($query)) {
if(!$forum['postperm'] && !$allowpost) {
showmessage('group_nopermission');
} elseif($forum['postperm'] && !forumperm($forum['postperm'])) {
showmessage('post_forum_newthread_nopermission');
}
}
$db->query("UPDATE {$tablepre}threads SET fid='$moveto', moderated='1' WHERE tid='$tid'");
$db->query("UPDATE {$tablepre}posts SET fid='$moveto' WHERE tid='$tid'");
require_once DISCUZ_ROOT.'./include/post.func.php';
updateforumcount($moveto);
updateforumcount($thread['fid']);
usemagic($magicid, $magic['num']);
updatemagiclog($magicid, '2', '1', '0', $tid);
updatemagicthreadlog($tid, $magicid, $magic['identifier']);
showmessage('magics_operation_succeed', 'magic.php?action=user');
}
function showmagic() {
global $tid, $lang;
require_once DISCUZ_ROOT.'./include/forum.func.php';
magicshowtype($lang['option'], 'top');
magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
magicshowsetting($lang['MVK_target'], '', '', '<select name="moveto">'.forumselect().'</select>');
magicshowtype('', 'bottom');
}
?> | zyyhong | trunk/jiaju001/bbs/include/magic/magic_move.inc.php | PHP | asf20 | 2,067 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: magic_top.inc.php 9806 2007-08-15 06:04:37Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if(submitcheck('usesubmit')) {
if(empty($tid)) {
showmessage('magics_info_nonexistence');
}
$post = getpostinfo($tid, 'tid', array('fid'));
checkmagicperm($magicperm['forum'], $post['fid']);
magicthreadmod($tid);
$db->query("UPDATE {$tablepre}threads SET displayorder='1', moderated='1' WHERE tid='$tid'");
$expiration = $timestamp + 86400;
usemagic($magicid, $magic['num']);
updatemagiclog($magicid, '2', '1', '0', $tid);
updatemagicthreadlog($tid, $magicid, $magic['identifier'], $expiration);
showmessage('magics_operation_succeed', 'magic.php?action=user');
}
function showmagic() {
global $tid, $lang;
magicshowtype($lang['option'], 'top');
magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
magicshowtype('', 'bottom');
}
?> | zyyhong | trunk/jiaju001/bbs/include/magic/magic_top.inc.php | PHP | asf20 | 1,029 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forumdisplay.php 10115 2007-08-24 00:58:08Z cnteacher $
*/
define('CURSCRIPT', 'forumdisplay');
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
$discuz_action = 2;
if($forum['redirect']) {
dheader("Location: $forum[redirect]");
} elseif($forum['type'] == 'group') {
dheader("Location: {$indexname}?gid=$fid");
} elseif(empty($forum['fid'])) {
showmessage('forum_nonexistence', NULL, 'HALTED');
}
$showoldetails = isset($showoldetails) ? $showoldetails : '';
switch($showoldetails) {
case 'no': dsetcookie('onlineforum', 0, 86400 * 365); break;
case 'yes': dsetcookie('onlineforum', 1, 86400 * 365); break;
}
if($forum['type'] == 'forum') {
$navigation = "» $forum[name]";
$navtitle = strip_tags($forum['name']);
} else {
$forumup = $_DCACHE['forums'][$forum['fup']]['name'];
$navigation = "» <a href=\"forumdisplay.php?fid=$forum[fup]\">$forumup</a> » $forum[name]";
$navtitle = strip_tags($forum['name']).' - '.strip_tags($forumup);
}
$rsshead = $rssstatus ? ('<link rel="alternate" type="application/rss+xml" title="'.$bbname.' - '.$navtitle.'" href="'.$boardurl.'rss.php?fid='.$fid.'&auth='.$rssauth."\" />\n") : '';
$navtitle .= ' - ';
$metakeywords = !$forum['keywords'] ? strip_tags($forum['name']) : $forum['keywords'];
$metadescription = !$forum['description'] ? strip_tags($forum['name']) : strip_tags($forum['description']);
if($forum['viewperm'] && !forumperm($forum['viewperm']) && !$forum['allowview']) {
showmessage('forum_nopermission', NULL, 'NOPERM');
} elseif($forum['formulaperm']) {
forumformulaperm($forum['formulaperm']);
}
if($forum['password']) {
if($action == 'pwverify') {
if($pw != $forum['password']) {
showmessage('forum_passwd_incorrect', NULL, 'HALTED');
} else {
dsetcookie('fidpw'.$fid, $pw);
showmessage('forum_passwd_correct', "forumdisplay.php?fid=$fid");
}
} elseif($forum['password'] != $_DCOOKIE['fidpw'.$fid]) {
include template('forumdisplay_passwd');
exit();
}
}
if($forum['rules']) {
if(empty($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'rules') === FALSE) {
$collapse['rules'] = '';
$collapse['rules_link'] = 'display: none';
} else {
$collapse['rules'] = 'display: none';
$collapse['rules_link'] = '';
}
$forum['rules'] && $forum['rules'] = nl2br($forum['rules']);
}
$forum['modrecommend'] = $forum['modrecommend'] ? unserialize($forum['modrecommend']) : array();
if($forum['modrecommend'] && $forum['modrecommend']['open']) {
$forum['recommendlist'] = recommendupdate($fid, $forum['modrecommend']);
}
if($forum['recommendlist']) {
if(empty($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'recommendlist') === FALSE) {
$collapse['recommendlist'] = '';
$collapse['recommendlist_link'] = 'display: none';
} else {
$collapse['recommendlist'] = 'display: none';
$collapse['recommendlist_link'] = '';
}
}
$toptablewidth = $forum['rules'] && $forum['recommendlist'] ? '50%' : '100%';
$forum['typemodels'] = $forum['typemodels'] ? unserialize($forum['typemodels']) : array();
$moderatedby = moddisplay($forum['moderators'], 'forumdisplay');
$highlight = empty($highlight) ? '' : htmlspecialchars($highlight);
if($forum['autoclose']) {
$closedby = $forum['autoclose'] > 0 ? 'dateline' : 'lastpost';
$forum['autoclose'] = abs($forum['autoclose']) * 86400;
}
$subexists = 0;
foreach($_DCACHE['forums'] as $sub) {
if($sub['type'] == 'sub' && $sub['fup'] == $fid && (!$hideprivate || !$sub['viewperm'] || forumperm($sub['viewperm']) || strstr($sub['users'], "\t$discuz_uid\t"))) {
$subexists = 1;
$sublist = array();
$sql = $accessmasks ? "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm, a.allowview FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE fup='$fid' AND status>0 AND type='sub' ORDER BY f.displayorder"
: "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, ff.description, ff.moderators, ff.icon, ff.viewperm FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff USING(fid)
WHERE f.fup='$fid' AND f.status>0 AND f.type='sub' ORDER BY f.displayorder";
$query = $db->query($sql);
while($sub = $db->fetch_array($query)) {
if(forum($sub)) {
$sub['orderid'] = count($sublist);
$sublist[] = $sub;
}
}
break;
}
}
if($subexists) {
if($forum['forumcolumns']) {
$forum['forumcolwidth'] = floor(100 / $forum['forumcolumns']).'%';
$forum['subscount'] = count($sublist);
$forum['endrows'] = '';
if($colspan = $forum['subscount'] % $forum['forumcolumns']) {
while(($forum['forumcolumns'] - $colspan) > 0) {
$forum['endrows'] .= '<td> </td>';
$colspan ++;
}
$forum['endrows'] .= '</tr>';
}
}
if(empty($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'subforum_'.$fid) === FALSE) {
$collapse['subforum'] = '';
$collapseimg['subforum'] = 'collapsed_no.gif';
} else {
$collapse['subforum'] = 'display: none';
$collapseimg['subforum'] = 'collapsed_yes.gif';
}
}
if($forum['simple'] & 1) {
$forumselect = $forummenu = '';
if($forumjump) {
if($jsmenu[1]) {
$forummenu = forumselect(FALSE, 1);
} else {
$forumselect = forumselect();
}
}
include template('forumdisplay_simple');
exit();
}
$page = isset($page) ? max(1, intval($page)) : 1;
$page = $threadmaxpages && $page > $threadmaxpages ? 1 : $page;
$start_limit = ($page - 1) * $tpp;
if($page == 1) {
if($_DCACHE['announcements_forum']) {
$announcement = $_DCACHE['announcements_forum'];
$announcement['starttime'] = gmdate($dateformat, $announcement['starttime'] + ($timeoffset * 3600));
} else {
$announcement = NULL;
}
}
$forumdisplayadd = $filteradd = '';
$specialtype = array('poll' => 1, 'trade' => 2, 'reward' => 3, 'activity' => 4, 'debate' => 5, 'video' => 6);
if(isset($filter)) {
if($filter == 'digest') {
$forumdisplayadd .= '&filter=digest';
$filteradd = "AND digest>'0'";
} elseif($filter == 'type' && $forum['threadtypes']['listable'] && $typeid && isset($forum['threadtypes']['types'][$typeid])) {
$forumdisplayadd .= "&filter=type&typeid=$typeid";
$filteradd = "AND typeid='$typeid'";
} elseif(preg_match("/^\d+$/", $filter)) {
$forumdisplayadd .= "&filter=$filter";
$filteradd = $filter ? "AND lastpost>='".($timestamp - $filter)."'" : '';
} elseif(isset($specialtype[$filter])) {
$forumdisplayadd .= "&filter=$filter";
$filteradd = "AND special='$specialtype[$filter]'";
} else {
$filter = '';
}
} else {
$filter = '';
}
isset($orderby) && in_array($orderby, array('lastpost', 'dateline', 'replies', 'views')) ? $forumdisplayadd .= "&orderby=$orderby" : $orderby = $_DCACHE['forums'][$fid]['orderby'] ? $_DCACHE['forums'][$fid]['orderby'] : 'lastpost';
isset($ascdesc) && in_array($ascdesc, array('ASC', 'DESC')) ? $forumdisplayadd .= "&ascdesc=$ascdesc" : $ascdesc = $_DCACHE['forums'][$fid]['ascdesc'] ? $_DCACHE['forums'][$fid]['ascdesc'] : 'DESC';
$check = array();
$check[$filter] = $check[$orderby] = $check[$ascdesc] = 'selected="selected"';
if($whosonlinestatus == 2 || $whosonlinestatus == 3) {
$whosonlinestatus = 1;
$onlineinfo = explode("\t", $onlinerecord);
$detailstatus = $showoldetails == 'yes' || (((!isset($_DCOOKIE['onlineforum']) && !$whosonline_contract) || $_DCOOKIE['onlineforum']) && $onlineinfo[0] < 500 && !$showoldetails);
if($detailstatus) {
updatesession();
@include language('actions');
$whosonline = array();
$forumname = strip_tags($forum['name']);
$guestwhere = isset($_DCACHE['onlinelist'][7]) ? '' : "uid>'0' AND";
$query = $db->query("SELECT uid, groupid, username, invisible, lastactivity, action FROM {$tablepre}sessions WHERE $guestwhere fid='$fid' AND invisible='0'");
if($db->num_rows($query)) {
$whosonlinestatus = 1;
while($online = $db->fetch_array($query)) {
if($online['uid']) {
$online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
} else {
$online['icon'] = $_DCACHE['onlinelist'][7];
$online['username'] = $_DCACHE['onlinelist']['guest'];
}
$online['action'] = $actioncode[$online['action']];
$online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
$whosonline[] = $online;
}
}
unset($online);
}
} else {
$whosonlinestatus = 0;
}
$pmlist = array();
$announcepm = 0;
if($_DCACHE['pmlist']) {
$readapmids = !empty($_DCOOKIE['readapmid']) ? explode('D', $_DCOOKIE['readapmid']) : array();
foreach($_DCACHE['pmlist'] as $pm) {
if($discuz_uid && (empty($pm['groups']) || in_array($groupid, $pm['groups']))) {
if(!in_array($pm['pmid'], $readapmids)) {
$pm['announce'] = TRUE;
$pmlist[] = $pm;
$announcepm++;
}
}
}
}
if($discuz_uid && $newpm) {
require_once DISCUZ_ROOT.'./include/pmprompt.inc.php';
}
if(empty($filter)) {
$threadcount = $forum['threads'];
} else {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' $filteradd AND displayorder>='0'");
$threadcount = $db->result($query, 0);
}
$thisgid = $forum['type'] == 'forum' ? $forum['fup'] : $_DCACHE['forums'][$forum['fup']]['fup'];
if($globalstick) {
$stickytids = $_DCACHE['globalstick']['global']['tids'].(empty($_DCACHE['globalstick']['categories'][$thisgid]['count']) ? '' : ','.$_DCACHE['globalstick']['categories'][$thisgid]['tids']);
$stickycount = $_DCACHE['globalstick']['global']['count'] + $_DCACHE['globalstick']['categories'][$thisgid]['count'];
} else {
$stickycount = $stickytids = 0;
}
$filterbool = !empty($filter) && in_array($filter, array('digest', 'type', 'activity', 'poll', 'trade', 'reward', 'debate', 'video'));
$threadcount += $filterbool ? 0 : $stickycount;
$multipage = multi($threadcount, $tpp, $page, "forumdisplay.php?fid=$fid$forumdisplayadd", $threadmaxpages);
$extra = rawurlencode("page=$page$forumdisplayadd");
$separatepos = 0;
$threadlist = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$displayorderadd = !$filterbool && $stickycount ? 't.displayorder IN (0, 1)' : 't.displayorder IN (0, 1, 2, 3)';
if(($start_limit && $start_limit > $stickycount) || !$stickycount || $filterbool) {
$querysticky = '';
$query = $db->query("SELECT t.* FROM {$tablepre}threads t
WHERE t.fid='$fid' $filteradd AND $displayorderadd
ORDER BY t.displayorder DESC, t.$orderby $ascdesc
LIMIT ".($filterbool ? $start_limit : $start_limit - $stickycount).", $tpp");
} else {
$querysticky = $db->query("SELECT t.* FROM {$tablepre}threads t
WHERE t.tid IN ($stickytids) AND t.displayorder IN (2, 3)
ORDER BY displayorder DESC, $orderby $ascdesc
LIMIT $start_limit, ".($stickycount - $start_limit < $tpp ? $stickycount - $start_limit : $tpp));
if($tpp - $stickycount + $start_limit > 0) {
$query = $db->query("SELECT t.* FROM {$tablepre}threads t
WHERE t.fid='$fid' $filteradd AND $displayorderadd
ORDER BY displayorder DESC, $orderby $ascdesc
LIMIT ".($tpp - $stickycount + $start_limit));
} else {
$query = '';
}
}
if($page < 4 && !(empty($_DCACHE['floatthreads']['categories'][$thisgid]) && empty($_DCACHE['floatthreads']['forums'][$fid]))) {
$queryfloat = $db->query("SELECT t.* FROM {$tablepre}threads t
WHERE t.tid IN (".(!empty($_DCACHE['floatthreads']['categories'][$thisgid]) ? $_DCACHE['floatthreads']['categories'][$thisgid] : 0).','.(!empty($_DCACHE['floatthreads']['forums'][$fid]) ? $_DCACHE['floatthreads']['forums'][$fid] : 0).") AND t.displayorder IN (4, 5)
ORDER BY displayorder DESC");
} else {
$queryfloat = '';
}
$ppp = $forum['threadcaches'] && !$discuz_uid ? $_DCACHE['settings']['postperpage'] : $ppp;
$iscircle = $supe['status'] && $supe['circlestatus'] && $forum['status'] == 2 ? 1 : 0;
if($iscircle) {
unset($forum['threadtypes']);
}
$sgids = array();
while(($querysticky && $thread = $db->fetch_array($querysticky)) || ($query && $thread = $db->fetch_array($query)) || ($queryfloat && $thread = $db->fetch_array($queryfloat))) {
$thread['icon'] = isset($_DCACHE['icons'][$thread['iconid']]) ? '<img src="images/icons/'.$_DCACHE['icons'][$thread['iconid']].'" alt="Icon'.$thread['iconid'].'" class="icon" />' : ' ';
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
$thread['typeid'] = $thread['typeid'] && !empty($forum['threadtypes']['prefix']) && isset($forum['threadtypes']['types'][$thread['typeid']]) ?
'<em>[<a href="forumdisplay.php?fid='.$fid.'&filter=type&typeid='.$thread['typeid'].'">'.$forum['threadtypes']['types'][$thread['typeid']].'</a>]</em>' : '';
$thread['multipage'] = '';
$topicposts = $thread['special'] ? $thread['replies'] : $thread['replies'] + 1;
$thread['special'] == 3 && $thread['price'] < 0 && $thread['replies']--;
if($topicposts > $ppp) {
$pagelinks = '';
$topicpages = ceil($topicposts / $ppp);
for($i = 1; $i <= 6 && $i <= $topicpages; $i++) {
$pagelinks .= "<a href=\"viewthread.php?tid=$thread[tid]&extra=$extra&page=$i\">$i</a> ";
}
if($topicpages > 6) {
$pagelinks .= " .. <a href=\"viewthread.php?tid=$thread[tid]&extra=$extra&page=$topicpages\">$topicpages</a> ";
}
$thread['multipage'] = ' '.$pagelinks;
}
if($thread['highlight']) {
$string = sprintf('%02d', $thread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$thread['highlight'] = ' style="';
$thread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
$thread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$thread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
$thread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$thread['highlight'] .= '"';
} else {
$thread['highlight'] = '';
}
$thread['moved'] = 0;
if($thread['closed'] || ($forum['autoclose'] && $timestamp - $thread[$closedby] > $forum['autoclose'])) {
$thread['new'] = 0;
if($thread['closed'] > 1) {
$thread['moved'] = $thread['tid'];
$thread['tid'] = $thread['closed'];
$thread['replies'] = '-';
$thread['views'] = '-';
}
$thread['folder'] = 'lock';
} else {
$thread['folder'] = 'common';
if($lastvisit < $thread['lastpost'] && (empty($_DCOOKIE['oldtopics']) || strpos($_DCOOKIE['oldtopics'], 'D'.$thread['tid'].'D') === FALSE)) {
$thread['new'] = 1;
$thread['folder'] = 'new';
} else {
$thread['new'] = 0;
}
if($thread['replies'] > $thread['views']) {
$thread['views'] = $thread['replies'];
}
if($thread['replies'] >= $hottopic) {
$thread['folder'] = 'hot';
}
}
$thread['dateline'] = gmdate($dateformat, $thread['dateline'] + $timeoffset * 3600);
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
if(in_array($thread['displayorder'], array(1, 2, 3))) {
$thread['id'] = 'stickthread_'.$thread['tid'];
$separatepos++;
} elseif(in_array($thread['displayorder'], array(4, 5))) {
$thread['id'] = 'floatthread_'.$thread['tid'];
} else {
$thread['id'] = 'normalthread_'.$thread['tid'];
}
$iscircle && $thread['sgid'] && $sgids[] = $thread['sgid'];
$threadlist[] = $thread;
}
$separatepos = $separatepos ? $separatepos + 1 : ($announcement ? 1 : 0);
$visitedforums = $visitedforums ? visitedforums() : '';
$forumselect = $forummenu = '';
$typeselect = typeselect($typeid, '', 'onchange="if(this.options[this.selectedIndex].className) {this.form.action=this.form.action + \'&previewpost=yes&showpreview=no\';this.form.submit();}"');
$usesigcheck = $discuz_uid && $sigstatus ? 'checked="checked"' : '';
$allowpost = (!$forum['postperm'] && $allowpost) || ($forum['postperm'] && forumperm($forum['postperm'])) || !empty($forum['allowpost']);
$showpoll = $showtrade = $showreward = $showactivity = $showdebate = $showvideo = 0;
if($forum['allowpostspecial']) {
$showpoll = $forum['allowpostspecial'] & 1;
$showtrade = $forum['allowpostspecial'] & 2;
$showreward = isset($extcredits[$creditstrans]) && ($forum['allowpostspecial'] & 4);
$showactivity = $forum['allowpostspecial'] & 8;
$showdebate = $forum['allowpostspecial'] & 16;
$showvideo = ($forum['allowpostspecial'] & 32) && $videoopen;
}
if($allowpost) {
$allowpostpoll = $allowpostpoll && $showpoll;
$allowposttrade = $allowposttrade && $showtrade;
$allowpostreward = $allowpostreward && $showreward;
$allowpostactivity = $allowpostactivity && $showactivity;
$allowpostdebate = $allowpostdebate && $showdebate;
$allowpostvideo = $allowpostvideo && $showvideo;
}
$forumselect = $forummenu = '';
if($forumjump) {
if($jsmenu[1]) {
$forummenu = forumselect(FALSE, 1);
} else {
$forumselect = forumselect();
}
}
if($iscircle) {
require_once DISCUZ_ROOT.'./include/supesite_circle.inc.php';
}
$areaid=$forum['areaid'];
if($areaid==2){
$siteurl='http://shy.jiaju001.com';
}else{
$siteurl='http://www.jiaju001.com';
}
include template('forumdisplay');
?> | zyyhong | trunk/jiaju001/bbs/forumdisplay.php | PHP | asf20 | 17,679 |
<?php
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
define('DISCUZ_VERSION', '6.0.0');
define('DISCUZ_RELEASE', '20090818');
?> | zyyhong | trunk/jiaju001/bbs/discuz_version.php | PHP | asf20 | 147 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: post.php 10215 2007-08-25 01:08:25Z liuqiang $
*/
define('CURSCRIPT', 'post');
define('NOROBOT', TRUE);
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/post.func.php';
$_DTYPE = $checkoption = $optionlist = array();
if($typeid) {
threadtype_checkoption();
}
if(empty($action)) {
showmessage('undefined_action', NULL, 'HALTED');
} elseif($action == 'smilies' && $smileyinsert) {
$smile = isset($_DCOOKIE['smile']) ? explode('D', $_DCOOKIE['smile']) : array();
$stypeid = intval($stypeid ? $stypeid : $smile[0]);
$stypeid = isset($_DCACHE['smileytypes'][$stypeid]) ? $stypeid : (isset($_DCACHE['smileytypes'][STYPEID]) ? STYPEID : key($_DCACHE['smileytypes']));
$smilies = $_DCACHE['smilies_display'][$stypeid];
$page = max(1, intval(isset($_GET['page']) ? $_GET['page'] : (!isset($_GET['stypeid']) || $_GET['stypeid'] == $smile[0] ? $smile[1] : 1)));
$spp = $smcols * $smrows;
$multipage = multi(count($smilies), $spp, $page, 'post.php?action=smilies&stypeid='.$stypeid.'&inajax=1', 0, 10, FALSE, TRUE);
$smilies = arrayslice($smilies, $spp * ($page - 1), $spp);
dsetcookie('smile', $stypeid.'D'.$page, 86400 * 365);
include template('post_smilies');
exit;
}elseif($action == 'threadtypes') {
threadtype_optiondata();
$template = intval($operate) ? 'search_typeoption' : 'post_typeoption';
include template($template);
exit;
} elseif(($forum['simple'] & 1) || $forum['redirect']) {
showmessage('forum_disablepost');
}
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
$navigation = $navtitle = $thread = '';
if($action == 'edit' || $action == 'reply') {
$query = $db->query("SELECT * FROM {$tablepre}threads WHERE tid='$tid'".($auditstatuson ? '' : " AND displayorder>='0'"));
if($thread = $db->fetch_array($query)) {
$navigation = "» <a href=\"viewthread.php?tid=$tid\">$thread[subject]</a>";
$navtitle = $thread['subject'].' - ';
if($thread['readperm'] && $thread['readperm'] > $readaccess && !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) {
showmessage('thread_nopermission', NULL, 'NOPERM');
}
$fid = $thread['fid'];
$special = $thread['special'];
} else {
showmessage('thread_nonexistence');
}
}
$navigation = "» <a href=\"forumdisplay.php?fid=$fid".($extra ? '&'.preg_replace("/^(&)*/", '', $extra) : '')."\">$forum[name]</a> $navigation";
$navtitle = $navtitle.strip_tags($forum['name']).' - ';
if($forum['type'] == 'sub') {
$query = $db->query("SELECT name, fid FROM {$tablepre}forums WHERE fid='$forum[fup]'");
$fup = $db->fetch_array($query);
$navigation = "» <a href=\"forumdisplay.php?fid=$fup[fid]\">$fup[name]</a> $navigation";
$navtitle = $navtitle.strip_tags($fup['name']).' - ';
}
periodscheck('postbanperiods');
if($forum['password'] && $forum['password'] != $_DCOOKIE['fidpw'.$fid]) {
dheader("Location: {$boardurl}forumdisplay.php?fid=$fid&sid=$sid");
}
if(empty($forum['allowview'])) {
if(!$forum['viewperm'] && !$readaccess) {
showmessage('group_nopermission', NULL, 'NOPERM');
} elseif($forum['viewperm'] && !forumperm($forum['viewperm'])) {
showmessage('forum_nopermission', NULL, 'NOPERM');
}
}
forumformulaperm($forum['formulaperm']);
if(!$adminid && $newbiespan && (!$lastpost || $timestamp - $lastpost < $newbiespan * 3600)) {
$query = $db->query("SELECT regdate FROM {$tablepre}members WHERE uid='$discuz_uid'");
if($timestamp - ($db->result($query, 0)) < $newbiespan * 3600) {
showmessage('post_newbie_span');
}
}
$special = empty($special) || !is_numeric($special) || $special < 0 || $special > 6 ? 0 : intval($special);
$allowpostattach = !empty($forum['allowpostattach']) || (!$forum['postattachperm'] && $allowpostattach) || ($forum['postattachperm'] && forumperm($forum['postattachperm']));
$attachextensions = $forum['attachextensions'] ? $forum['attachextensions'] : $attachextensions;
$enctype = $allowpostattach ? 'enctype="multipart/form-data"' : '';
$maxattachsize_kb = $maxattachsize / 1000;
$postcredits = $forum['postcredits'] ? $forum['postcredits'] : $creditspolicy['post'];
$replycredits = $forum['replycredits'] ? $forum['replycredits'] : $creditspolicy['reply'];
$digestcredits = $forum['digestcredits'] ? $forum['digestcredits'] : $creditspolicy['digest'];
$postattachcredits = $forum['postattachcredits'] ? $forum['postattachcredits'] : $creditspolicy['postattach'];
$maxprice = isset($extcredits[$creditstrans]) ? $maxprice : 0;
$extra = rawurlencode($extra);
$blogcheck = empty($isblog) && empty($addtoblog) ? '' : 'checked="checked"';
$notifycheck = empty($emailnotify) ? '' : 'checked="checked"';
$stickcheck = empty($sticktopic) ? '' : 'checked="checked"';
$digestcheck = empty($addtodigest) ? '' : 'checked="checked"';
$subject = isset($subject) ? dhtmlspecialchars(censor(trim($subject))) : '';
$message = isset($message) ? censor(trim($message)) : '';
$readperm = isset($readperm) ? intval($readperm) : 0;
$price = isset($price) ? intval($price) : 0;
if(empty($bbcodeoff) && !$allowhidecode && !empty($message) && preg_match("/\[hide=?\d*\].+?\[\/hide\]/is", preg_replace("/(\[code\](.+?)\[\/code\])/is", ' ', $message))) {
showmessage('post_hide_nopermission');
}
if(periodscheck('postmodperiods', 0)) {
$modnewthreads = $modnewreplies = 1;
} else {
$censormod = censormod($subject."\t".$message);
$modnewthreads = (!$allowdirectpost || $allowdirectpost == 1) && ($forum['modnewposts'] || $censormod) ? 1 : 0;
$modnewreplies = (!$allowdirectpost || $allowdirectpost == 2) && ($forum['modnewposts'] == 2 || $censormod) ? 1 : 0;
}
$urloffcheck = $usesigcheck = $smileyoffcheck = $codeoffcheck = $htmloncheck = $emailcheck = '';
$seccodecheck = ($seccodestatus & 4) && (!$seccodedata['minposts'] || $posts < $seccodedata['minposts']);
$secqaacheck = $secqaa['status'][2] && (!$secqaa['minposts'] || $posts < $secqaa['minposts']);
if($iscircle = $supe['status'] && $supe['circlestatus'] && $forum['status'] == 2) {
unset($forum['threadtypes']);
}
$allowpostpoll = $allowpost && $allowpostpoll && ($forum['allowpostspecial'] & 1);
$allowposttrade = $allowpost && $allowposttrade && ($forum['allowpostspecial'] & 2);
$allowpostreward = $allowpost && $allowpostreward && ($forum['allowpostspecial'] & 4) && isset($extcredits[$creditstrans]);
$allowpostactivity = $allowpost && $allowpostactivity && ($forum['allowpostspecial'] & 8);
$allowpostdebate = $allowpost && $allowpostdebate && ($forum['allowpostspecial'] & 16);
$allowpostvideo = $allowpost && $allowpostvideo && ($forum['allowpostspecial'] & 32) && $videoopen;
$allowanonymous = $forum['allowanonymous'] || $allowanonymous ? 1 : 0;
if($action == 'newthread' && $forum['allowspecialonly'] && !$special) {
if($allowpostpoll) {
$special = 1;
} elseif($allowposttrade) {
$special = 2;
} elseif($allowpostreward) {
$special = 3;
} elseif($allowpostactivity) {
$special = 4;
} elseif($allowpostdebate) {
$special = 5;
} elseif($allowpostvideo) {
$special = 6;
}
if(!$special) {
showmessage('undefined_action', NULL, 'HALTED');
}
}
$editorid = 'posteditor';
$editoroptions = str_pad(decbin($editoroptions), 2, 0, STR_PAD_LEFT);
$editormode = $editormode == 2 ? $editoroptions{0} : $editormode;
$allowswitcheditor = $editoroptions{1};
$advanceeditor = $special ? 0 : 1;
$previewdisplay = !empty($previewpost) ? '' : 'none';
if(!empty($previewpost) || (empty($previewpost) && empty($topicsubmit) && empty($replysubmit) && empty($editsubmit))) {
!$typeid && preg_replace("/.*typeid%3D(\d+).*/e", "\$typeid = \\1;", $extra);
if($discuz_uid && $sigstatus && !$usesigcheck) {
$usesigcheck = 'checked="checked"';
}
$trade = array();
if(($action == 'newthread' || $action == 'reply') && $special == 2) {
$query = $db->query("SELECT alipay FROM {$tablepre}memberfields WHERE uid='$discuz_uid'");
$trade['account'] = $db->result($query, 0);
$trade['amount'] = 1;
$trade['transport'] = 2;
}
$currtime = gmdate("$dateformat $timeformat", $timestamp + $timeoffset * 3600);
if(empty($previewpost)) {
$subject = $message = $polloptions = '';
} else {
$subject = stripslashes($subject);
$message = stripslashes($message);
$message_preview = discuzcode($message, !empty($smileyoff), !empty($bbcodeoff), !empty($htmlon), $forum['allowsmilies'], $forum['allowbbcode'], $forum['allowimgcode'], $forum['allowhtml'], 0, 1);
$message = $editormode == 1 && $bbinsert && !(isopera() && isopera() < 9) ? $message_preview : dhtmlspecialchars($message);
$urloffcheck = !empty($parseurloff) ? 'checked="checked"' : '';
$usesigcheck = !empty($usesig) ? 'checked="checked"' : '';
$smileyoffcheck = !empty($smileyoff) ? 'checked="checked"' : '';
$codeoffcheck = !empty($bbcodeoff) ? 'checked="checked"' : '';
$htmloncheck = !empty($htmlon) ? 'checked="checked"' : '';
$emailcheck = !empty($emailnotify) ? 'checked="checked"' : '';
$topicsubmit = $replysubmit = $editsubmit = '';
}
} else {
if((!empty($topicsubmit) || !empty($replysubmit)) && (($seccodecheck && !isset($seccodeverify)) || ($secqaacheck && !isset($secanswer)))) {
if($seccodecheck) {
$seccode = random(6, 1) + $seccode{0} * 1000000;
}
if($secqaacheck) {
$seccode = random(1, 1) * 1000000 + substr($seccode, -6);
}
$request = array
(
'method' => $_SERVER['REQUEST_METHOD'],
'action' => $PHP_SELF,
'elements' => ''
);
$quesand = '?';
foreach($_GET as $key => $value) {
$request['action'] .= $quesand.rawurlencode($key).'='.rawurlencode($value);
$quesand = '&';
}
foreach($_POST as $key => $value) {
if(is_array($value)) {
foreach($value as $arraykey => $arrayvalue) {
$request['elements'] .= '<input type="hidden" name="'.dhtmlspecialchars($key.'['.$arraykey.']').'" value="'.dhtmlspecialchars(stripslashes($arrayvalue)).'" />';
}
} else {
$request['elements'] .= '<input type="hidden" name="'.dhtmlspecialchars($key).'" value="'.dhtmlspecialchars(stripslashes($value)).'" />';
}
}
include template('post_seccode');
dexit();
}
}
if($action == 'newthread') {
require_once DISCUZ_ROOT.'./include/newthread.inc.php';
} elseif($action == 'reply') {
require_once DISCUZ_ROOT.'./include/newreply.inc.php';
} elseif($action == 'edit') {
require_once DISCUZ_ROOT.'./include/editpost.inc.php';
} elseif($action == 'import') {
require_once DISCUZ_ROOT.'./include/supesite_import.inc.php';
} elseif($action == 'newtrade') {
require_once DISCUZ_ROOT.'./include/newtrade.inc.php';
}
?>
| zyyhong | trunk/jiaju001/bbs/post.php | PHP | asf20 | 10,884 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: topic.php 9804 2007-08-15 05:56:19Z cnteacher $
*/
require_once './include/common.inc.php';
$randnum = !empty($qihoo['relate']['webnum']) ? rand(1, 1000) : '';
$statsdata = $statsdata ? dhtmlspecialchars($statsdata) : '';
if($url && $randnum) {
$url = dhtmlspecialchars($url);
$md5 = dhtmlspecialchars($md5);
$fid = substr($statsdata, 0, strpos($statsdata, '||'));
include template('viewthread_iframe');
exit();
}
if(empty($keyword)) {
showmessage('undefined_action');
}
$tpp = intval($tpp);
$page = max(1, intval($page));
$start = ($page - 1) * $tpp;
$site = site();
$length = intval($length);
$stype = empty($stype) ? 0 : 'title';
$relate = in_array($relate, array('score', 'pdate', 'rdate')) ? $relate : 'score';
$keyword = dhtmlspecialchars(stripslashes($keyword));
$topic = $topic ? dhtmlspecialchars(stripslashes($topic)) : $keyword;
include template('topic');
?> | zyyhong | trunk/jiaju001/bbs/topic.php | PHP | asf20 | 1,033 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: my.php 10115 2007-08-24 00:58:08Z cnteacher $
*/
define('NOROBOT', TRUE);
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
$discuz_action = 8;
if(!$discuz_uid) {
showmessage('not_loggedin', NULL, 'NOPERM');
}
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$threadlist = $postlist = array();
$tids = $comma = $threadadd = $postadd = $forumname = $extrafid = $extra = $multipage = '';
if($srchfid = empty($srchfid) ? 0 : intval($srchfid)) {
$threadadd = "AND t.fid='$srchfid'";
$postadd = "AND p.fid='$srchfid'";
$forumname = $_DCACHE['forums'][$srchfid]['name'];
$extrafid = '&srchfid='.$srchfid;
}
$item = isset($item) ? trim($item) : '';
if(empty($item)) {
$query = $db->query("SELECT m.*, t.subject, t.fid, t.displayorder, t.lastposter, t.lastpost, t.closed FROM {$tablepre}mythreads m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.tid=t.tid $threadadd ORDER BY m.dateline DESC LIMIT 5");
while($thread = $db->fetch_array($query)) {
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$thread['forumname'] = $_DCACHE['forums'][$thread['fid']]['name'];
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
$threadlist[] = $thread;
}
$query = $db->query("SELECT m.*, p.fid, p.invisible FROM {$tablepre}myposts m
INNER JOIN {$tablepre}posts p ON p.pid=m.pid $postadd
INNER JOIN {$tablepre}threads t ON t.tid=m.tid
WHERE m.uid = '$discuz_uid' ORDER BY m.dateline DESC LIMIT 5");
while($post = $db->fetch_array($query)) {
$post['forumname'] = $_DCACHE['forums'][$post['fid']]['name'];
$postlist[$post['tid']] = $post;
$tids .= $comma.$post['tid'];
$comma = ', ';
}
if($tids) {
$query = $db->query("SELECT tid, subject, lastposter, lastpost FROM {$tablepre}threads WHERE tid IN ($tids)");
while($thread = $db->fetch_array($query)) {
$postlist[$thread['tid']]['subject'] = $thread['subject'];
$postlist[$thread['tid']]['lastposter'] = $thread['lastposter'];
$postlist[$thread['tid']]['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$postlist[$thread['tid']]['lastposterenc'] = rawurlencode($thread['lastposter']);
}
}
} elseif($item == 'grouppermission') {
$searchgroupid = isset($searchgroupid) ? intval($searchgroupid) : $groupid;
$grouplist = array();
$query = $db->query("SELECT groupid, type, grouptitle FROM {$tablepre}usergroups ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower");
while($group = $db->fetch_array($query)) {
$grouplist[$group['type']] .= '<li><a href="my.php?item=grouppermission&type='.$group['type'].'&searchgroupid='.$group['groupid'].'">'.$group['grouptitle'].'</a></li>';
}
$query = $db->query("SELECT * FROM {$tablepre}usergroups u LEFT JOIN {$tablepre}admingroups a ON u.groupid=a.admingid WHERE u.groupid='$searchgroupid'");
if(!$group = $db->fetch_array($query)) {
showmessage('usergroups_nonexistence');
}
$group['maxattachsize'] = $group['maxattachsize'] / 1000;
$group['maxsizeperday'] = $group['maxsizeperday'] / 1000;
$group['maxbiosize'] = $group['maxbiosize'] ? $group['maxbiosize'] : 200;
include template('my_grouppermission');
exit;
} elseif($item == 'threads') {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}mythreads m, {$tablepre}threads t WHERE m.uid='$discuz_uid' $threadadd AND m.tid=t.tid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, 'my.php?item=threads'.($srchfid ? "&srchfid=$srchfid" : NULL).$extrafid);
$query = $db->query("SELECT m.*, t.subject, t.fid, t.displayorder, t.closed, t.lastposter, t.lastpost FROM {$tablepre}mythreads m, {$tablepre}threads t
WHERE m.uid = '$discuz_uid' $threadadd AND m.tid=t.tid ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($thread = $db->fetch_array($query)) {
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$thread['forumname'] = $_DCACHE['forums'][$thread['fid']]['name'];
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
$threadlist[] = $thread;
}
} elseif($item == 'posts') {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}myposts m
INNER JOIN {$tablepre}posts p ON p.pid=m.pid $postadd
INNER JOIN {$tablepre}threads t ON t.tid=m.tid
WHERE m.uid = '$discuz_uid'");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, 'my.php?item=posts'.($srchfid ? "&srchfid=$srchfid" : NULL).$extrafid);
$query = $db->query("SELECT m.uid, m.tid, m.pid, p.fid, p.invisible, p.dateline FROM {$tablepre}myposts m
INNER JOIN {$tablepre}posts p ON p.pid=m.pid $postadd
INNER JOIN {$tablepre}threads t ON t.tid=m.tid
WHERE m.uid = '$discuz_uid' ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($post = $db->fetch_array($query)) {
$post['forumname'] = $_DCACHE['forums'][$post['fid']]['name'];
$postlist[$post['tid']] = $post;
$tids .= $comma.$post['tid'];
$comma = ', ';
}
if($tids) {
$query = $db->query("SELECT tid, subject AS tsubject, lastposter, lastpost FROM {$tablepre}threads WHERE tid IN ($tids)");
while($thread = $db->fetch_array($query)) {
$postlist[$thread['tid']]['tsubject'] = $thread['tsubject'];
$postlist[$thread['tid']]['lastposter'] = $thread['lastposter'];
$postlist[$thread['tid']]['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
$postlist[$thread['tid']]['lastposterenc'] = rawurlencode($thread['lastposter']);
}
}
} elseif(in_array($item, array('favorites', 'subscriptions'))) {
if($fid && empty($forum['allowview'])) {
if(!$forum['viewperm'] && !$readaccess) {
showmessage('group_nopermission', NULL, 'NOPERM');
} elseif($forum['viewperm'] && !forumperm($forum['viewperm'])) {
showmessage('forum_nopermission', NULL, 'NOPERM');
}
}
if($item == 'favorites') {
$ftid = $type == 'thread' || $tid ? 'tid' : 'fid';
$type = $type == 'thread' || $tid ? 'thread' : 'forum';
$extra .= $srchfid ? '&type='.$type : '';
if(($fid || $tid) && !submitcheck('favsubmit')) {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}favorites WHERE uid='$discuz_uid' AND $ftid>'0'");
if($db->result($query, 0) >= $maxfavorites) {
showmessage('favorite_is_full', 'my.php?item=favorites&type='.$type);
}
$query = $db->query("SELECT $ftid FROM {$tablepre}favorites WHERE uid='$discuz_uid' AND $ftid='${$ftid}' LIMIT 1");
if($db->result($query, 0)) {
showmessage('favorite_exists');
} else {
$db->query("INSERT INTO {$tablepre}favorites (uid, $ftid) VALUES ('$discuz_uid', '${$ftid}')");
showmessage('favorite_add_succeed', dreferer());
}
} elseif(!$fid && !$tid) {
if(!submitcheck('favsubmit')) {
$favlist = array();
if($type == 'forum') {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}favorites fav, {$tablepre}forums f
WHERE fav.uid = '$discuz_uid' AND fav.fid=f.fid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=favorites&type=forum$extrafid");
$query = $db->query("SELECT f.fid, f.name, f.threads, f.posts, f.todayposts, f.lastpost
FROM {$tablepre}favorites fav, {$tablepre}forums f
WHERE fav.fid=f.fid AND fav.uid='$discuz_uid' ORDER BY f.lastpost DESC LIMIT $start_limit, $tpp");
while($fav = $db->fetch_array($query)) {
$fav['lastposterenc'] = rawurlencode($fav['lastposter']);
$fav['lastpost'] = gmdate("$dateformat $timeformat", $fav['lastpost'] + $timeoffset * 3600);
$favlist[] = $fav;
}
} else {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}favorites fav, {$tablepre}threads t
WHERE fav.uid = '$discuz_uid' AND fav.tid=t.tid AND t.displayorder>='0' $threadadd");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=favorites&type=thread$extrafid");
$query = $db->query("SELECT t.tid, t.fid, t.subject, t.replies, t.lastpost, t.lastposter, f.name
FROM {$tablepre}favorites fav, {$tablepre}threads t, {$tablepre}forums f
WHERE fav.tid=t.tid AND t.displayorder>='0' AND fav.uid='$discuz_uid' AND t.fid=f.fid $threadadd
ORDER BY t.lastpost DESC LIMIT $start_limit, $tpp");
while($fav = $db->fetch_array($query)) {
$fav['lastposterenc'] = rawurlencode($fav['lastposter']);
$fav['lastpost'] = gmdate("$dateformat $timeformat", $fav['lastpost'] + $timeoffset * 3600);
$favlist[] = $fav;
}
}
} else {
if($ids = implodeids($delete)) {
$db->query("DELETE FROM {$tablepre}favorites WHERE uid='$discuz_uid' AND $ftid IN ($ids)", 'UNBUFFERED');
}
showmessage('favorite_update_succeed', dreferer());
}
}
} else {
if(isset($subadd) && !submitcheck('subsubmit')) {
$subadd = intval($subadd);
if($pricethread = $db->result($db->query("SELECT price FROM {$tablepre}threads WHERE tid='$subadd'"), 0)) {
$query = $db->query("SELECT tid FROM {$tablepre}paymentlog WHERE tid='$subadd' AND uid='$discuz_uid'");
if(!$db->num_rows($query)) {
showmessage('subscription_nopermission');
}
}
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}subscriptions WHERE uid='$discuz_uid'");
if($db->result($query, 0) >= $maxsubscriptions) {
showmessage('subscription_is_full', 'my.php?item=subscriptions');
}
$query = $db->query("SELECT tid FROM {$tablepre}subscriptions WHERE tid='$subadd' AND uid='$discuz_uid' LIMIT 1");
if($db->result($query, 0)) {
showmessage('subscription_exists');
} else {
$db->query("INSERT INTO {$tablepre}subscriptions (uid, tid, lastnotify) VALUES ('$discuz_uid', '$subadd', '')");
showmessage('subscription_add_succeed', dreferer());
}
} elseif(empty($subadd)) {
if(!submitcheck('subsubmit')) {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}subscriptions s, {$tablepre}threads t
WHERE s.uid = '$discuz_uid' AND s.tid=t.tid $threadadd");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=subscriptions$extrafid");
$subslist = array();
$query = $db->query("SELECT t.tid, t.fid, t.subject, t.replies, t.lastpost, t.lastposter, f.name
FROM {$tablepre}subscriptions s, {$tablepre}threads t, {$tablepre}forums f
WHERE t.tid=s.tid AND t.displayorder>='0' AND f.fid=t.fid AND s.uid='$discuz_uid' $threadadd
ORDER BY t.lastpost DESC LIMIT $start_limit, $tpp");
while($subs = $db->fetch_array($query)) {
$subs['lastposterenc'] = rawurlencode($subs['lastposter']);
$subs['lastpost'] = gmdate("$dateformat $timeformat", $subs['lastpost'] + $timeoffset * 3600);
$subslist[] = $subs;
}
} else {
if($ids = implodeids($delete)) {
$db->query("DELETE FROM {$tablepre}subscriptions WHERE uid='$discuz_uid' AND tid IN ($ids)", 'UNBUFFERED');
}
showmessage('subscription_update_succeed', dreferer());
}
}
}
} elseif($item == 'selltrades' || $item == 'buytrades') {
require_once DISCUZ_ROOT.'./api/alipayapi.php';
include_once language('misc');
$sqlfield = $item == 'selltrades' ? 'sellerid' : 'buyerid';
$sqlfilter = '';
switch($filter) {
case 'attention': $typestatus = $item; break;
case 'eccredit' : $typestatus = 'eccredittrades';
$sqlfilter .= $item == 'selltrades' ? 'AND (tl.ratestatus=0 OR tl.ratestatus=1) ' : 'AND (tl.ratestatus=0 OR tl.ratestatus=2) ';
break;
case 'all' : $typestatus = ''; break;
case 'success' : $typestatus = 'successtrades'; break;
case 'closed' : $typestatus = 'closedtrades'; break;
case 'refund' : $typestatus = 'refundtrades'; break;
case 'unstart' : $typestatus = 'unstarttrades'; break;
default : $typestatus = 'tradingtrades'; $filter = '';
}
$sqlfilter .= $typestatus ? 'AND tl.status IN (\''.trade_typestatus($typestatus).'\')' : '';
if(!empty($srchkey)) {
$sqlkey = 'AND tl.subject like \'%'.str_replace('*', '%', addcslashes($srchkey, '%_')).'%\'';
$extrasrchkey = '&srchkey='.rawurlencode($srchkey);
$srchkey = dhtmlspecialchars($srchkey);
} else {
$sqlkey = $extrasrchkey = $srchkey = '';
}
$pid = intval($pid);
$sqltid = $tid ? 'AND tl.tid=\''.$tid.'\''.($pid ? ' AND tl.pid=\''.$pid.'\'' : '') : '';
$extra .= $srchfid ? '&filter='.$filter : '';
$extratid = $tid ? "&tid=$tid".($pid ? "&pid=$pid" : '') : '';
$query = $db->query("SELECT COUNT(*)
FROM {$tablepre}tradelog tl, {$tablepre}threads t
WHERE tl.tid=t.tid AND tl.$sqlfield='$discuz_uid'
$threadadd $sqltid $sqlkey $sqlfilter");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=$item$extratid$extrafid".($filter ? "&filter=$filter" : '').$extrafid.$extrasrchkey);
$query = $db->query("SELECT tl.*, tr.aid, t.subject AS threadsubject
FROM {$tablepre}tradelog tl, {$tablepre}threads t, {$tablepre}trades tr
WHERE tl.tid=t.tid AND tr.pid=tl.pid AND tr.tid=tl.tid AND tl.$sqlfield='$discuz_uid'
$threadadd $sqltid $sqlkey $sqlfilter
ORDER BY tl.lastupdate DESC LIMIT $start_limit, $tpp");
$tradeloglist = array();
while($tradelog = $db->fetch_array($query)) {
$tradelog['lastupdate'] = gmdate("$dateformat $timeformat", $tradelog['lastupdate'] + $timeoffset * 3600);
$tradelog['attend'] = trade_typestatus($item, $tradelog['status']);
$tradelog['status'] = trade_getstatus($tradelog['status']);
$tradeloglist[] = $tradelog;
}
} elseif($item == 'tradestats') {
require_once DISCUZ_ROOT.'./api/alipayapi.php';
$query = $db->query("SELECT COUNT(*) AS totalitems, SUM(price) AS tradesum FROM {$tablepre}tradelog WHERE buyerid='$discuz_uid' AND status IN ('".trade_typestatus('successtrades')."')");
$buystats = $db->fetch_array($query);
$query = $db->query("SELECT COUNT(*) AS totalitems, SUM(price) AS tradesum FROM {$tablepre}tradelog WHERE sellerid='$discuz_uid' AND status IN ('".trade_typestatus('successtrades')."')");
$sellstats = $db->fetch_array($query);
$query = $db->query("SELECT status FROM {$tablepre}tradelog WHERE buyerid='$discuz_uid' AND status IN ('".trade_typestatus('buytrades')."')");
$buyerattend = $db->num_rows($query);
$attendstatus = array();
while($status = $db->fetch_array($query)) {
@$attendstatus[$status['status']]++;
}
$query = $db->query("SELECT status FROM {$tablepre}tradelog WHERE sellerid='$discuz_uid' AND status IN ('".trade_typestatus('selltrades')."')");
$sellerattend = $db->num_rows($query);
while($status = $db->fetch_array($query)) {
@$attendstatus[$status['status']]++;
}
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}tradelog WHERE buyerid='$discuz_uid' AND status IN ('".trade_typestatus('tradingtrades')."')");
$goodsbuyer = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}trades WHERE sellerid='$discuz_uid' AND closed='0'");
$goodsseller = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}tradelog WHERE status IN ('".trade_typestatus('eccredittrades')."') AND buyerid='$discuz_uid' AND (ratestatus=0 OR ratestatus=2)");
$eccreditbuyer = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}tradelog WHERE status IN ('".trade_typestatus('eccredittrades')."') AND sellerid='$discuz_uid' AND (ratestatus=0 OR ratestatus=1)");
$eccreditseller = $db->result($query, 0);
} elseif($item == 'tradethreads') {
if(!empty($srchkey)) {
$sqlkey = 'AND subject like \'%'.str_replace('*', '%', addcslashes($srchkey, '%_')).'%\'';
$extrasrchkey = '&srchkey='.rawurlencode($srchkey);
$srchkey = dhtmlspecialchars($srchkey);
} else {
$sqlkey = $extrasrchkey = $srchkey = '';
}
$sqltid = $tid ? 'AND tid ='.$tid : '';
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}trades WHERE sellerid='$discuz_uid' $sqltid $sqlkey");
$num = $db->result($query, 0);
$extratid = $tid ? "&tid=$tid" : '';
$multipage = multi($num, $tpp, $page, "my.php?item=tradethreads$extratid$extrafid$extrasrchkey");
$tradelist = array();
$query = $db->query("SELECT * FROM {$tablepre}trades WHERE sellerid='$discuz_uid' $sqltid $sqlkey ORDER BY tradesum DESC, totalitems DESC LIMIT $start_limit, $tpp");
while($tradethread = $db->fetch_array($query)) {
$tradethread['lastupdate'] = gmdate("$dateformat $timeformat", $tradethread['lastupdate'] + $timeoffset * 3600);
$tradethread['lastbuyer'] = rawurlencode($tradethread['lastbuyer']);
if($tradethread['expiration']) {
$tradethread['expiration'] = ($tradethread['expiration'] - $timestamp) / 86400;
if($tradethread['expiration'] > 0) {
$tradethread['expirationhour'] = floor(($tradethread['expiration'] - floor($tradethread['expiration'])) * 24);
$tradethread['expiration'] = floor($tradethread['expiration']);
} else {
$tradethread['expiration'] = -1;
}
}
$tradelist[] = $tradethread;
}
} elseif($item == 'reward') {
$rewardloglist = Array();
if($type == 'stats') {
$query = $db->query("SELECT COUNT(*) AS total, SUM(ABS(netamount)) AS totalprice FROM {$tablepre}rewardlog WHERE authorid='$discuz_uid'");
$questions = $db->fetch_array($query);
$questions['total'] = $questions['total'] ? $questions['total'] : 0;
$questions['totalprice'] = $questions['totalprice'] ? $questions['totalprice'] : 0;
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}rewardlog WHERE authorid='$discuz_uid' and answererid>0");
$questions['solved'] = $db->result($query, 0);
$questions['percent'] = number_format(($questions['total'] != 0) ? round($questions['solved'] / $questions['total'] * 100, 2) : 0, 2, '.', '');
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}rewardlog WHERE answererid='$discuz_uid'");
$answers['total'] = $db->result($query, 0);
$query = $db->query("SELECT COUNT(*) AS tids, SUM(ABS(t.price)) AS totalprice
FROM {$tablepre}rewardlog r
LEFT JOIN {$tablepre}threads t USING(tid)
WHERE r.authorid>0 and r.answererid='$discuz_uid'");
$answeradopted = $db->fetch_array($query);
$answers['adopted'] = $answeradopted['tids'];
$answers['totalprice'] = $answeradopted['totalprice'] ? $answeradopted['totalprice'] : 0;
$answers['percent'] = number_format(($answers['total'] != 0) ? round($answers['adopted'] / $answers['total'] * 100, 2) : 0, 2, '.', '');
} elseif($type == 'answer') {
$extra .= $srchfid ? '&type=answer' : '';
$filter = isset($filter) && in_array($filter, array('adopted', 'unadopted')) ? $filter : '';
$sqlfilter = empty($filter) ? '' : ($filter == 'adopted' ? 'AND r.authorid>0' : 'AND r.authorid=0');
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}rewardlog r WHERE answererid='$discuz_uid'");
$multipage = multi($db->result($query, 0), $tpp, $page, "my.php?item=reward&type=answer$extrafid");
$query = $db->query("SELECT r.*, t.subject, t.price, m.uid, m.username, f.fid, f.name
FROM {$tablepre}rewardlog r
LEFT JOIN {$tablepre}threads t ON t.tid=r.tid
LEFT JOIN {$tablepre}forums f ON f.fid=t.fid
LEFT JOIN {$tablepre}members m ON m.uid=t.authorid
WHERE r.answererid='$discuz_uid' $threadadd $sqlfilter
ORDER BY r.dateline DESC
LIMIT $start_limit, $tpp");
while($rewardlog = $db->fetch_array($query)) {
$rewardlog['dateline'] = gmdate("$dateformat $timeformat", $rewardlog['dateline'] + $timeoffset * 3600);
$rewardlog['price'] = abs($rewardlog['price']);
$rewardloglist[] = $rewardlog;
}
} elseif($type == 'question') {
$extra .= $srchfid ? '&type=question' : '';
$filter = in_array($filter, array('solved', 'unsolved')) ? $filter : '';
$sqlfilter = empty($filter) ? '' : ($filter == 'solved' ? 'AND r.answererid>0' : 'AND r.answererid=0');
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}rewardlog r WHERE authorid='$discuz_uid' $sqlfilter");
$multipage = multi($db->result($query, 0), $tpp, $page, "my.php?item=reward&type=question&filter=$filter$extrafid");
$query = $db->query("SELECT r.*, t.subject, t.price, m.uid, m.username, f.fid, f.name
FROM {$tablepre}rewardlog r
LEFT JOIN {$tablepre}threads t ON t.tid=r.tid
LEFT JOIN {$tablepre}forums f ON f.fid=t.fid
LEFT JOIN {$tablepre}members m ON m.uid=r.answererid
WHERE r.authorid='$discuz_uid' $threadadd $sqlfilter
ORDER BY r.dateline DESC
LIMIT $start_limit, $tpp");
while($rewardlog = $db->fetch_array($query)) {
$rewardlog['dateline'] = gmdate("$dateformat $timeformat", $rewardlog['dateline'] + $timeoffset * 3600);
$rewardlog['price'] = abs($rewardlog['price']);
$rewardloglist[] = $rewardlog;
}
} else {
showmessage('undefined_action');
}
} elseif($item == 'activities') {
$ended = isset($ended) && in_array($ended, array('yes', 'no')) ? $ended : '';
$sign = $ascadd = '';
$activity = array();
if($ended == 'yes') {
$sign = " AND starttimefrom<'$timestamp'";
$ascadd = 'DESC';
} elseif($ended == 'no') {
$sign = " AND starttimefrom>='$timestamp'";
}
if($type == 'orig') {
$extra .= $srchfid ? '&type=orig' : '';
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}activities a LEFT JOIN {$tablepre}threads t USING(tid) WHERE a.uid='$discuz_uid' AND t.special='4' $threadadd $sign");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=activities&type=orig&ended=$ended$extrafid");
$query = $db->query("SELECT a.*, t.subject FROM {$tablepre}activities a LEFT JOIN {$tablepre}threads t USING(tid) WHERE a.uid='$discuz_uid' AND t.special='4' $threadadd $sign ORDER BY starttimefrom $ascadd LIMIT $start_limit, $tpp");
while($tempact = $db->fetch_array($query)) {
$tempact['starttimefrom'] = gmdate("$dateformat $timeformat", $tempact['starttimefrom'] + $timeoffset * 3600);
$activity[] = $tempact;
}
} else {
$extra .= $srchfid ? '&type='.$type : '';
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}activityapplies aa LEFT JOIN {$tablepre}activities a USING(tid) LEFT JOIN {$tablepre}threads t USING(tid) WHERE a.uid='$discuz_uid' $threadadd$sign");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=activities&type=apply&ended=$ended$extrafid");
$query = $db->query("SELECT aa.verified, aa.tid, starttimefrom, a.place, a.cost, t.subject FROM {$tablepre}activityapplies aa LEFT JOIN {$tablepre}activities a USING(tid) LEFT JOIN {$tablepre}threads t USING(tid) WHERE aa.uid='$discuz_uid' $threadadd$sign ORDER BY starttimefrom $ascadd LIMIT $start_limit, $tpp");
while($tempact = $db->fetch_array($query)) {
$tempact['starttimefrom'] = gmdate("$dateformat $timeformat", $tempact['starttimefrom'] + $timeoffset * 3600);
$activity[] = $tempact;
}
}
} elseif($item == 'polls'){
$polllist = array();
if($type == 'poll') {
if($srchfid = intval($srchfid)) {
$threadadd = "AND fid='$srchfid'";
}
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}mythreads m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='1' $threadadd AND m.tid=t.tid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=polls&type=poll$extrafid");
$query = $db->query("SELECT t.tid, t.subject, t.fid, t.displayorder, t.closed, t.lastposter, t.lastpost
FROM {$tablepre}threads t, {$tablepre}mythreads m
WHERE m.uid='$discuz_uid' AND m.special='1' AND m.tid=t.tid $threadadd
ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($poll = $db->fetch_array($query)) {
$poll['lastpost'] = gmdate("$dateformat $timeformat", $poll['lastpost'] + $timeoffset * 3600);
$poll['lastposterenc'] = rawurlencode($poll['lastposter']);
$poll['forumname'] = $_DCACHE['forums'][$poll['fid']]['name'];
$polllist[] = $poll;
}
} else {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}myposts m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='1' $threadadd AND m.tid=t.tid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=polls&type=join$extrafid");
$query = $db->query("SELECT m.dateline, t.tid, t.fid, t.subject, t.displayorder, t.closed
FROM {$tablepre}myposts m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='1' AND m.tid=t.tid $threadadd
ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($poll = $db->fetch_array($query)) {
$poll['dateline'] = gmdate("$dateformat $timeformat", $poll['dateline'] + $timeoffset * 3600);
$poll['forumname'] = $_DCACHE['forums'][$poll['fid']]['name'];
$polllist[] = $poll;
}
}
} elseif($item == 'promotion' && ($creditspolicy['promotion_visit'] || $creditspolicy['promotion_register'])) {
$promotion_visit = $promotion_register = $space = '';
foreach(array('promotion_visit', 'promotion_register') as $val) {
if(!empty($creditspolicy[$val]) && is_array($creditspolicy[$val])) {
foreach($creditspolicy[$val] as $id => $policy) {
$$val .= $space.$extcredits[$id]['title'].' +'.$policy;
$space = ' ';
}
}
}
} elseif($item == 'debate') {
$debatelist = array();
if($type == 'orig') {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}mythreads m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='5' $threadadd AND m.tid=t.tid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=debate&type=orig$extrafid");
$query = $db->query("SELECT t.tid, t.subject, t.fid, t.displayorder, t.closed, t.lastposter, t.lastpost
FROM {$tablepre}threads t, {$tablepre}mythreads m
WHERE m.uid='$discuz_uid' AND m.special='5' AND m.tid=t.tid $threadadd
ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($debate = $db->fetch_array($query)) {
$debate['lastpost'] = gmdate("$dateformat $timeformat", $debate['lastpost'] + $timeoffset * 3600);
$debate['lastposterenc'] = rawurlencode($debate['lastposter']);
$debate['forumname'] = $_DCACHE['forums'][$debate['fid']]['name'];
$debatelist[] = $debate;
}
} elseif($type == 'reply') {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}myposts m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='5' $threadadd AND m.tid=t.tid");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=debate&type=reply$extrafid");
$query = $db->query("SELECT m.dateline, t.tid, t.fid, t.subject, t.displayorder, t.closed
FROM {$tablepre}myposts m, {$tablepre}threads t
WHERE m.uid='$discuz_uid' AND m.special='5' AND m.tid=t.tid $threadadd
ORDER BY m.dateline DESC LIMIT $start_limit, $tpp");
while($debate = $db->fetch_array($query)) {
$debate['dateline'] = gmdate("$dateformat $timeformat", $debate['dateline'] + $timeoffset * 3600);
$debate['forumname'] = $_DCACHE['forums'][$debate['fid']]['name'];
$debatelist[] = $debate;
}
}
} elseif($item == 'video') {
$videolist = array();
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}videos WHERE uid='$discuz_uid'");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, "my.php?item=video");
$query = $db->query("SELECT * FROM {$tablepre}videos WHERE uid='$discuz_uid' ORDER BY dateline DESC LIMIT $start_limit, $tpp");
while($video = $db->fetch_array($query)) {
$video['dateline'] = gmdate("$dateformat $timeformat", $video['dateline'] + $timeoffset * 3600);
$video['vtime'] = $video['vtime'] ? sprintf("%02d", intval($video['vtime'] / 60)).':'.sprintf("%02d", intval($video['vtime'] % 60)) : '';
$videolist[] = $video;
}
$videonum = count($videolist);
$videoendrows = '';
if($colspan = $videonum % 2) {
while(($colspan - 2) < 0) {
$videoendrows .= '<td></td>';
$colspan ++;
}
$videoendrows .= '</tr>';
}
} elseif($item == 'buddylist') {
if(!submitcheck('buddysubmit', 1)) {
$buddylist = array();
$query = $db->query("SELECT b.*, m.username FROM {$tablepre}buddys b, {$tablepre}members m
WHERE b.uid='$discuz_uid' AND m.uid=b.buddyid ORDER BY dateline DESC");
while($buddy = $db->fetch_array($query)) {
$buddy['dateline'] = gmdate("$dateformat $timeformat", $buddy['dateline'] + $timeoffset * 3600);
$buddylist[] = $buddy;
}
} else {
$buddyarray = array();
$query = $db->query("SELECT * FROM {$tablepre}buddys WHERE uid='$discuz_uid'");
while($buddy = $db->fetch_array($query)) {
$buddyarray[$buddy['buddyid']] = $buddy;
}
if(!empty($delete) && is_array($delete)) {
$db->query("DELETE FROM {$tablepre}buddys WHERE uid='$discuz_uid' AND buddyid IN ('".implode('\',\'', $delete)."')");
}
if(is_array($descriptionnew)) {
foreach($descriptionnew as $buddyid => $desc) {
if(($desc = cutstr(dhtmlspecialchars($desc), 255)) != addslashes($buddyarray[$buddyid]['description'])) {
$db->query("UPDATE {$tablepre}buddys SET description='$desc' WHERE uid='$discuz_uid' AND buddyid='$buddyid'");
}
}
}
if(($newbuddy && $newbuddy != $discuz_userss) || ($newbuddyid && $newbuddyid != $discuz_uid)) {
if(!in_array($adminid, array(1, 2, 3))) {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}buddys WHERE uid='$discuz_uid'");
if(($db->result($query, 0)) > 20) {
showmessage('buddy_add_toomany');
}
}
$query = $db->query("SELECT uid FROM {$tablepre}members WHERE ".(empty($newbuddyid) ? "username='$newbuddy'" : "uid='$newbuddyid'"));
if($buddyid = $db->result($query, 0)) {
if(isset($buddyarray[$buddyid])) {
showmessage('buddy_add_invalid');
}
$db->query("INSERT INTO {$tablepre}buddys (uid, buddyid, dateline, description)
VALUES ('$discuz_uid', '$buddyid', '$timestamp', '".cutstr(dhtmlspecialchars($newdescription), 255)."')");
} else {
showmessage('username_nonexistence');
}
}
showmessage('buddy_update_succeed', 'my.php?item=buddylist');
}
} else {
showmessage('undefined_action', NULL, 'HALTED');
}
include template('my');
?> | zyyhong | trunk/jiaju001/bbs/my.php | PHP | asf20 | 30,736 |
<?
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: plugin.php 10115 2007-08-24 00:58:08Z cnteacher $
*/
require_once './include/common.inc.php';
$pluginmodule = isset($pluginlinks[$identifier][$module]) ? $pluginlinks[$identifier][$module] : '';
if(empty($identifier) || empty($module) || !preg_match("/^[a-z0-9_\-]+$/i", $module) || !$pluginmodule) {
showmessage('undefined_action');
} elseif($pluginmodule['adminid'] && ($adminid < 1 || ($adminid > 0 && $pluginmodule['adminid'] < $adminid))) {
showmessage('plugin_nopermission');
} elseif(@!file_exists(DISCUZ_ROOT.($modfile = './plugins/'.$pluginmodule['directory'].((!empty($pluginmodule['directory']) && substr($pluginmodule['directory'], -1) != '/') ? '/' : '') .$module.'.inc.php'))) {
showmessage('plugin_module_nonexistence');
}
include DISCUZ_ROOT.$modfile;
?> | zyyhong | trunk/jiaju001/bbs/plugin.php | PHP | asf20 | 909 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: sitemap.php 10363 2007-08-27 07:56:42Z chenchen $
*/
error_reporting(0);
define('IN_DISCUZ', TRUE);
define('DISCUZ_ROOT', './');
if(PHP_VERSION < '4.1.0') {
$_GET = &$HTTP_GET_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
}
require_once DISCUZ_ROOT.'./config.inc.php';
require_once DISCUZ_ROOT.'./include/global.func.php';
require_once DISCUZ_ROOT.'./include/db_'.$database.'.class.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_settings.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
$maxitemnum = 500;
$timestamp = time();
$PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$boardurl = 'http://'.$_SERVER['HTTP_HOST'].substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
$db = new dbstuff;
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
unset($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
if(!$_DCACHE['settings']['baidusitemap']) {
exit('Baidu Sitemaps is closed!');
}
$sitemapfile = DISCUZ_ROOT.'./forumdata/sitemap.xml';
$xmlfiletime = @filemtime($sitemapfile);
header("Content-type: application/xml");
$xmlcontent = "<?xml version=\"1.0\" encoding=\"$charset\"?>\n".
"<document xmlns:bbs=\"http://www.baidu.com/search/bbs_sitemap.xsd\">\n";
if($timestamp - $xmlfiletime >= $_DCACHE['settings']['baidusitemap_life'] * 3600) {
$groupid = 7;
$extgroupids = '';
$xmlfiletime = $timestamp - $_DCACHE['settings']['baidusitemap_life'] * 3600;
$fidarray = array();
foreach($_DCACHE['forums'] as $fid => $forum) {
if(sitemapforumperm($forum)) {
$fidarray[] = $fid;
}
}
$query = $db->query("SELECT tid, fid, subject, dateline, lastpost, replies, views, digest
FROM {$tablepre}threads
WHERE dateline > $xmlfiletime AND fid IN (".implode(',', $fidarray).") AND displayorder >= 0
LIMIT $maxitemnum");
$xmlcontent .= " <webSite>$boardurl</webSite>\n".
" <webMaster>$adminemail</webMaster>\n".
" <updatePeri>".$_DCACHE['settings']['baidusitemap_life']."</updatePeri>\n".
" <updatetime>".gmdate('Y-m-d H:i:s', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600)."</updatetime>\n".
" <version>Discuz! {$_DCACHE['settings']['version']}</version>\n";
while($thread = $db->fetch_array($query)) {
$xmlcontent .= " <item>\n".
" <link>".(!$_DCACHE['settings']['rewritestatus'] ? "{$boardurl}viewthread.php?tid=$thread[tid]" : "{$boardurl}thread-$thread[tid]-1-1.html")."</link>\n".
" <title>".dhtmlspecialchars($thread['subject'])."</title>\n".
" <pubDate>".gmdate('Y-m-d H:i:s', $thread['dateline'] + $_DCACHE['settings']['timeoffset'] * 3600)."</pubDate>\n".
" <bbs:lastDate>".gmdate('Y-m-d H:i:s', $thread['lastpost'] + $_DCACHE['settings']['timeoffset'] * 3600)."</bbs:lastDate>\n".
" <bbs:reply>$thread[replies]</bbs:reply>\n".
" <bbs:hit>$thread[views]</bbs:hit>\n".
" <bbs:boardid>$thread[fid]</bbs:boardid>\n".
" <bbs:pick>".(empty($thread['digest']) ? 0 : 1)."</bbs:pick>\n".
" </item>\n";
}
$xmlcontent .= "</document>";
if($fp = @fopen($sitemapfile, 'w')) {
fwrite($fp, $xmlcontent);
flock($fp, 2);
fclose($fp);
}
echo $xmlcontent;
} else {
@readfile($sitemapfile);
}
function sitemapforumperm($forum) {
return $forum['type'] != 'group' && (!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])));
}
?> | zyyhong | trunk/jiaju001/bbs/sitemap.php | PHP | asf20 | 3,505 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: index.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
define('CURSCRIPT', 'wap');
require_once '../include/common.inc.php';
if(preg_match('/(mozilla|m3gate|winwap|openwave)/i', $_SERVER['HTTP_USER_AGENT'])) {
dheader("Location: {$boardurl}index.php");
}
require_once './include/global.func.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
require_once DISCUZ_ROOT.'./include/chinese.class.php';
@include_once(DISCUZ_ROOT.'./forumdata/cache/cache_forums.php');
$discuz_action = 191;
$action = isset($action) ? $action : 'home';
if($action == 'goto' && !empty($url)) {
header("Location: $url");
exit();
} else {
wapheader($bbname);
}
include language('wap');
if(!$wapstatus) {
wapmsg('wap_disabled');
} elseif($bbclosed) {
wapmsg('board_closed');
}
$chs = '';
if(in_array($action, array('home', 'login', 'register', 'search', 'stats', 'my', 'myphone', 'goto', 'forum', 'thread', 'post', 'pm'))) {
require_once './include/'.$action.'.inc.php';
} else {
wapmsg('undefined_action');
}
wapfooter();
?>
| zyyhong | trunk/jiaju001/bbs/wap/index.php | PHP | asf20 | 1,182 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: thread.inc.php 11169 2007-11-08 06:30:00Z tiger $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 193;
$breaked = 0;
$threadposts = '';
$start = isset($start) ? intval($start) : 0;
$offset = isset($offset) ? intval($offset) : 0;
$do = !empty($do) ? $do : '';
$thread = $db->fetch_first("SELECT * FROM {$tablepre}threads WHERE tid='$tid' AND displayorder>='0'");
if(!$thread) {
wapmsg('thread_nonexistence');
}
if(($thread['readperm'] && $thread['readperm'] > $readaccess && !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) || (empty($forum['allowview']) && ((!$forum['viewperm'] && !$readaccess) || ($forum['viewperm'] && !forumperm($forum['viewperm'])))) || $forum['password'] || $forum['redirect']) {
wapmsg('thread_nopermission');
} elseif($thread['price'] > 0) {
if($maxchargespan && $timestamp - $thread['dateline'] >= $maxchargespan * 3600) {
$db->query("UPDATE {$tablepre}threads SET price='0' WHERE tid='$tid'");
$thread['price'] = 0;
} elseif(!$discuz_uid || (!$forum['ismoderator'] && $thread['authorid'] != $discuz_uid && !$db->num_rows($db->query("SELECT tid FROM {$tablepre}paymentlog WHERE tid='$tid' AND uid='$discuz_uid'")))) {
wapmsg('thread_nopermission');
}
}
if(empty($do)) {
echo "<p>$lang[subject]$thread[subject]<br />".
"$lang[author]<a href=\"index.php?action=my&uid=$thread[authorid]\">$thread[author]</a><br />".
"$lang[dateline]".gmdate("$wapdateformat $timeformat", $thread['dateline'] + $timeoffset * 3600)."<br /><br />";
$page = max(1, intval($page));
$start_limit = $number = ($page - 1) * $wapppp;
if($page < 2) {
$end_limit = $wapppp + 1;
} else {
$start_limit = $start_limit + 1;
$end_limit = $wapppp;
}
$query = $db->query("SELECT * FROM {$tablepre}posts
WHERE tid='$tid' AND invisible='0'
ORDER BY dateline LIMIT $start_limit, $end_limit");
while($post = $db->fetch_array($query)) {
$post['message'] = wapcode($post['message']);
if($post['first']) {
if($offset > 0) {
$str = $post['message'];
for($i = $offset; $i > $offset - $wapmps + 2; $i --) {
if(ord($str[$i-1]) > 127) {
$i --;
}
}
$offset_last = $i;
$post['message'] = substr($post['message'], $offset);
} else {
$offset = 0;
}
if(strlen($post['message']) > $wapmps) {
$post['message'] = wapcutstr($post['message'], $wapmps);
$offset_next = $offset + $wapmps;
$breaked = 1;
} else {
$breaked = 0;
}
$post['author'] = !$post['anonymous'] ? $post['author'] : $lang['anonymous'];
$threadposts .= nl2br(trim($post['message']));
} else {
$postlist[] = $post;
}
}
echo $threadposts.(!$breaked ? '' : "<br /><a href=\"index.php?action=thread&tid=$tid&offset=$offset_next\">$lang[next_page]</a> ").
(!$offset ? '' : "<a href=\"index.php?action=thread&tid=$tid&offset=$offset_last\">$lang[last_page]</a>")."<br />\n".
"<br /><a href=\"index.php?action=post&do=reply&fid=$forum[fid]&tid=$thread[tid]\">$lang[post_reply]</a>|<a href=\"index.php?action=post&do=newthread&fid=$forum[fid]\">$lang[post_new]</a>\n";
if(!empty($postlist)) {
echo "<br /><br />$lang[thread_replylist] ($thread[replies])<br />";
foreach($postlist as $post) {
$waptlength = 30;
echo "<a href=\"index.php?action=thread&do=reply&tid=$post[tid]&pid=$post[pid]\">#".++$number." ".wapcutstr(trim($post['message']), $waptlength)."</a>".
"<br />[".(!$post['anonymous'] ? $post['author'].' ' : $lang['anonymous'].' ').gmdate("$wapdateformat $timeformat", $post['dateline'] + $timeoffset * 3600)."]<br />";
}
echo wapmulti($thread['replies'], $wapppp, $page, "index.php?action=thread&tid=$thread[tid]");
}
} elseif($do == 'reply') {
echo "<p>$lang[thread_reply]<a href=\"index.php?action=thread&tid=$thread[tid]\">$thread[subject]</a><br />";
$post = $db->fetch_first("SELECT * FROM {$tablepre}posts WHERE pid='$pid' AND invisible='0'");
if($offset > 0) {
$post['message'] = '..'.substr($post['message'], $offset - 4);
}
if(strlen($threadposts) + strlen($post['message']) - $wapmps > 0) {
$length = $wapmps - strlen($threadposts);
$post['message'] = wapcutstr($post['message'], $length);
$offset += $length;
$breaked = 1;
}
$post['author'] = !$post['anonymous'] ? $post['author'] : $lang['anonymous'];
$post['message'] = wapcode($post['message']);
echo $lang['author'].(!$post['anonymous'] ? "<a href=\"index.php?action=my&uid=$post[authorid]\">$post[author]</a>" : $lang['anonymous'])."<br />\n".
"<br />".nl2br(trim($post['message']))."\n";
if(!$breaked) {
$start++;
$offset = 0;
}
}
echo "<br />".
(!empty($allowreply) ? "<br /><input type=\"text\" name=\"message\" value=\"\" size=\"6\" emptyok=\"true\"/>\n".
"<anchor title=\"$lang[submit]\">$lang[thread_quickreply]".
"<go method=\"post\" href=\"index.php?action=post&do=reply&fid=$forum[fid]&tid=$thread[tid]&sid=$sid\">\n".
"<postfield name=\"message\" value=\"$(message)\"/>\n".
"<postfield name=\"formhash\" value=\"".formhash()."\" />\n".
"</go></anchor><br />\n".
"<a href=\"index.php?action=my&do=fav&favid=$thread[tid]&type=thread\">$lang[my_addfav]</a><br />\n" : '').
"<br /><<<a href=\"index.php?action=goto&do=next&tid=$thread[tid]&fid=$thread[fid]\">$lang[next_thread]</a>".
"<br />>><a href=\"index.php?action=goto&do=last&tid=$thread[tid]&fid=$thread[fid]\">$lang[last_thread]</a><br />".
"<a href=\"index.php?action=forum&fid=$forum[fid]\">$lang[return_forum]</a></p>";
?> | zyyhong | trunk/jiaju001/bbs/wap/include/thread.inc.php | PHP | asf20 | 5,829 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: post.inc.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
require_once DISCUZ_ROOT.'./include/post.func.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
if(empty($forum) || $forum['type'] == 'group') {
wapmsg('forum_nonexistence');
}
if(empty($forum['allowview']) && ((!$forum['viewperm'] && !$readaccess) || ($forum['viewperm'] && !forumperm($forum['viewperm'])))) {
wapmsg('forum_nopermission');
}
if(empty($bbcodeoff) && !$allowhidecode && preg_match("/\[hide=?\d*\].+?\[\/hide\]/is", preg_replace("/(\[code\].*\[\/code\])/is", '', $message))) {
wapmsg('post_hide_nopermission');
}
if(!$adminid && $newbiespan && (!$lastpost || $timestamp - $lastpost < $newbiespan * 3600)) {
$regdate = $db->result_first("SELECT regdate FROM {$tablepre}members WHERE uid='$discuz_uid'");
if($timestamp - $regdate < $newbiespan * 3600) {
showmessage('post_newbie_span');
}
}
$postcredits = $forum['postcredits'] ? $forum['postcredits'] : $creditspolicy['post'];
$replycredits = $forum['replycredits'] ? $forum['replycredits'] : $creditspolicy['reply'];
$modnewthreads = (!$allowdirectpost || $allowdirectpost == 1) && ($forum['modnewposts'] || !empty($censormod)) ? 1 : 0;
$modnewreplies = (!$allowdirectpost || $allowdirectpost == 2) && ($forum['modnewposts'] == 2 || !empty($censormod)) ? 1 : 0;
$subject = wapconvert($subject);
$subject = ($subject != '') ? dhtmlspecialchars(censor(trim($subject))) : '';
$message = wapconvert($message);
$message = ($message != '') ? censor(trim($message)) : '';
if($do == 'newthread') {
$discuz_action = 195;
if(empty($forum['allowpost']) && ((!$forum['postperm'] && !$allowpost) || ($forum['postperm'] && !forumperm($forum['postperm'])))) {
wapmsg('post_newthread_nopermission');
}
if(empty($subject) || empty($message)) {
$typeselect = isset($forum['threadtypes']['required']) ? typeselect() : '';
echo "<p>".($typeselect ? "$lang[type]$typeselect<br />\n" : '').
"$lang[subject]<input type=\"text\" name=\"subject\" value=\"\" maxlength=\"80\" format=\"M*m\" /><br />\n".
"$lang[message]<input type=\"text\" name=\"message\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=post&do=newthread&fid=$fid&sid=$sid\">\n".
"<postfield name=\"subject\" value=\"$(subject)\" />\n".
"<postfield name=\"message\" value=\"$(message)\" />\n".
"<postfield name=\"formhash\" value=\"".formhash()."\" />\n".
($typeselect ? "<postfield name=\"typeid\" value=\"$(typeid)\" />\n" : '').
"</go></anchor>\n<br /><br />".
"<a href=\"index.php?action=forum&fid=$fid\">$lang[return_forum]</a></p>\n";
} else {
if($post_invalid = checkpost()) {
wapmsg($post_invalid);
}
if($formhash != formhash()) {
wapmsg('wap_submit_invalid');
}
if(checkflood()) {
wapmsg('post_flood_ctrl');
}
$typeid = isset($forum['threadtypes']['types'][$typeid]) ? $typeid : 0;
if(empty($typeid) && !empty($forum['threadtypes']['required'])) {
wapmsg('post_type_isnull');
}
$displayorder = $pinvisible = $modnewthreads ? -2 : 0;
$db->query("INSERT INTO {$tablepre}threads (fid, readperm, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, blog, special, attachment, moderated)
VALUES ('$fid', '0', '0', '$typeid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '0', '0', '0', '0', '0')");
$tid = $db->insert_id();
$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, subject, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)
VALUES ('$fid', '$tid', '1', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$pinvisible', '0', '0', '0', '0', '0', '0')");
$pid = $db->insert_id();
$db->query("REPLACE INTO {$tablepre}mythreads (uid, tid, dateline) VALUES ('$discuz_uid', '$tid', '$timestamp')", 'UNBUFFERED');
if($modnewthreads) {
wapmsg('post_mod_succeed', array('title' => 'post_mod_forward', 'link' => "index.php?action=forum&tid=$fid"));
} else {
updatepostcredits('+', $discuz_uid, $postcredits);
$lastpost = "$tid\t$subject\t$timestamp\t$discuz_user";
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost', threads=threads+1, posts=posts+1, todayposts=todayposts+1 WHERE fid='$fid'", 'UNBUFFERED');
if($forum['type'] == 'sub') {
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost' WHERE fid='$forum[fup]'", 'UNBUFFERED');
}
wapmsg('post_newthread_succeed', array('title' => 'post_newthread_forward', 'link' => "index.php?action=thread&tid=$tid"));
}
}
} elseif($do == 'reply') {
$discuz_action = 196;
$thread = $db->fetch_first("SELECT * FROM {$tablepre}threads WHERE tid='$tid'");
if(!$thread) {
wapmsg('thread_nonexistence');
}
if(empty($forum['allowreply']) && ((!$forum['replyperm'] && !$allowreply) || ($forum['replyperm'] && !forumperm($forum['replyperm'])))) {
wapmsg('post_newreply_nopermission');
}
if($thread['closed'] && !$forum['ismoderator']) {
wapmsg('post_thread_closed');
}
if($post_autoclose = checkautoclose()) {
wapmsg($post_autoclose);
}
if(empty($message)) {
echo "<p>$lang[message]<input type=\"text\" name=\"message\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=post&do=reply&fid=$fid&tid=$tid&sid=$sid\">\n".
"<postfield name=\"subject\" value=\"$(subject)\" />\n".
"<postfield name=\"message\" value=\"$(message)\" />\n".
"<postfield name=\"formhash\" value=\"".formhash()."\" />\n".
"</go></anchor><br /><br />\n".
"<a href=\"index.php?action=thread&tid=$tid\">$lang[return_thread]</a><br />\n".
"<a href=\"index.php?action=forum&fid=$fid\">$lang[return_forum]</a></p>\n";
} else {
if($message == '') {
wapmsg('post_sm_isnull');
}
if($post_invalid = checkpost()) {
wapmsg($post_invalid);
}
if($formhash != formhash()) {
wapmsg('wap_submit_invalid');
}
if(checkflood()) {
wapmsg('post_flood_ctrl');
}
$pinvisible = $modnewreplies ? -2 : 0;
$db->query("INSERT INTO {$tablepre}posts (fid, tid, first, author, authorid, dateline, message, useip, invisible, usesig, htmlon, bbcodeoff, smileyoff, parseurloff, attachment)
VALUES ('$fid', '$tid', '0', '$discuz_user', '$discuz_uid', '$timestamp', '$message', '$onlineip', '$pinvisible', '1', '0', '0', '0', '0', '0')");
$pid = $db->insert_id();
$db->query("REPLACE INTO {$tablepre}myposts (uid, tid, pid, position, dateline) VALUES ('$discuz_uid', '$tid', '$pid', '".($thread['replies'] + 1)."', '$timestamp')", 'UNBUFFERED');
if($modnewreplies) {
wapmsg('post_mod_succeed', array('title' => 'post_mod_forward', 'link' => "index.php?action=forum&fid=$fid"));
} else {
$db->query("UPDATE {$tablepre}threads SET lastposter='$discuz_user', lastpost='$timestamp', replies=replies+1 WHERE tid='$tid' AND fid='$fid'", 'UNBUFFERED');
updatepostcredits('+', $discuz_uid, $replycredits);
$lastpost = "$thread[tid]\t".addslashes($thread['subject'])."\t$timestamp\t$discuz_user";
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost', posts=posts+1, todayposts=todayposts+1 WHERE fid='$fid'", 'UNBUFFERED');
if($forum['type'] == 'sub') {
$db->query("UPDATE {$tablepre}forums SET lastpost='$lastpost' WHERE fid='$forum[fup]'", 'UNBUFFERED');
}
wapmsg('post_newreply_succeed', array('title' => 'post_newreply_forward', 'link' => "index.php?action=thread&tid=$tid&page=".(@ceil(($thread['replies'] + 2) / $wapppp))));
}
}
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/post.inc.php | PHP | asf20 | 8,161 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: goto.inc.php 16725 2008-11-17 04:41:46Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 194;
$do = !empty($do) && in_array($do, array('last', 'next')) ? $do : '';
if($do == 'last') {
if($fid && $tid) {
$this_lastpost = $db->result_first("SELECT lastpost FROM {$tablepre}threads WHERE tid='$tid' AND displayorder>='0'");
if($next = $db->fetch_first("SELECT tid FROM {$tablepre}threads WHERE fid='$fid' AND displayorder>='0' AND lastpost>'$this_lastpost' ORDER BY lastpost ASC LIMIT 1")) {
$tid = $next['tid'];
header("Location: index.php?action=thread&tid=$tid");
exit();
} else {
wapmsg('goto_last_nonexistence');
}
} else {
wapmsg('undefined_action');
}
} elseif($do == 'next') {
if($fid && $tid) {
$this_lastpost = $db->result_first("SELECT lastpost FROM {$tablepre}threads WHERE tid='$tid' AND displayorder>='0'");
if($last = $db->fetch_first("SELECT tid FROM {$tablepre}threads WHERE fid='$fid' AND displayorder>='0' AND lastpost<'$this_lastpost' ORDER BY lastpost DESC LIMIT 1")) {
$tid = $last['tid'];
header("Location: index.php?action=thread&tid=$tid");
exit();
} else {
wapmsg('goto_next_nonexistence');
}
} else {
wapmsg('undefined_action');
}
} else {
echo "<p>$lang[goto]:<br />\n".
"<input title=\"url\" name=\"url\" type=\"text\" value=\"http://\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]<go href=\"index.php?action=goto&url=$(url:escape)\" /></anchor></p>\n";
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/goto.inc.php | PHP | asf20 | 1,679 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: myphone.inc.php 9806 2007-08-15 06:04:37Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 194;
echo "<p>$lang[my_phone]<br />$_SERVER[HTTP_USER_AGENT]<br /><br />";
if(function_exists('getallheaders')) {
foreach(getallheaders() as $key => $value) {
echo strtoupper($key).": $value<br/>\n";
}
} else {
foreach(array('REMOTE_ADDR', 'REMOTE_PORT', 'REMOTE_USER', 'GATEWAY_INTERFACE', 'SERVER_PROTOCOL', 'HTTP_CONNECTION', 'HTTP_VIA') as $key) {
if(!empty($_SERVER[$key])) {
echo "<br />$key: $_SERVER[$key]\n";
}
}
}
echo '</p>';
?> | zyyhong | trunk/jiaju001/bbs/wap/include/myphone.inc.php | PHP | asf20 | 731 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: stats.inc.php 11169 2007-11-08 06:30:00Z tiger $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 194;
$members = $totalmembers;
@extract($db->fetch_first("SELECT SUM(threads) AS threads, SUM(posts) AS posts FROM {$tablepre}forums WHERE status>0"));
echo "<p>$lang[stats]<br /><br />\n".
"$lang[stats_members]: $members<br />\n".
"$lang[stats_threads]: $threads<br />\n".
"$lang[stats_posts]: $posts</p>\n";
?> | zyyhong | trunk/jiaju001/bbs/wap/include/stats.inc.php | PHP | asf20 | 584 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: pm.inc.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 197;
if(!$discuz_uid) {
wapmsg('not_loggedin');
}
if(empty($do)) {
$num_read = $num_unread = 0;
$query = $db->query("SELECT COUNT(*) AS num, new FROM {$tablepre}pms WHERE msgtoid='$discuz_uid' AND folder='inbox' GROUP BY new='0'");
while($pm = $db->fetch_array($query)) {
$pm['new'] ? $num_unread = $pm['num'] : $num_read = $pm['num'];
}
echo "<p><a href=\"index.php?action=pm&do=list&unread=yes\">$lang[pm_unread]($num_unread)</a><br />\n".
"<a href=\"index.php?action=pm&do=list\">$lang[pm_all](".($num_read + $num_unread).")</a><br />\n".
"<a href=\"index.php?action=pm&do=send\">$lang[pm_send]</a><br />\n".
"<a href=\"index.php?action=pm&do=delete\">$lang[pm_delete_all]</a></p>";
} else {
if($do == 'list') {
echo "<p>$lang[pm_list]<br />\n";
$unreadadd = empty($unread) ? '' : 'AND new>\'0\'';
$pageadd = empty($unread) ? '' : '&unread=yes';
$page = max(1, intval($page));
$start_limit = $number = ($page - 1) * $waptpp;
if(!($totalpms = $db->result_first("SELECT COUNT(*) FROM {$tablepre}pms WHERE msgtoid='$discuz_uid' AND folder='inbox' $unreadadd"))) {
wapmsg('pm_nonexistence');
}
$query = $db->query("SELECT pmid, new, msgfrom, subject, dateline FROM {$tablepre}pms
WHERE msgtoid='$discuz_uid' AND folder='inbox' $unreadadd
ORDER BY dateline DESC
LIMIT $start_limit, $waptpp");
while($pm = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=pm&do=view&pmid=$pm[pmid]\">#".++$number.' '.(empty($unread) && $pm['new'] ? "($lang[unread])" : '').cutstr($pm['subject'], 30)."</a><br />\n".
" <small>".gmdate("$wapdateformat $timeformat", $pm['dateline'] + $timeoffset * 3600)."<br />\n".
" $pm[msgfrom]</small><br />\n";
}
echo wapmulti($totalpms, $waptpp, $page, "index.php?action=pm&do=$do$pageadd");
echo "<br /><a href=\"index.php?action=pm&do=send\">$lang[pm_send]</a>\n";
} elseif($do == 'view') {
$pm = $db->fetch_first("SELECT * FROM {$tablepre}pms WHERE pmid='$pmid' AND msgtoid='$discuz_uid' AND folder='inbox'");
if(!$pm) {
wapmsg('pm_nonexistence');
}
echo "<p>$lang[thread]$pm[subject]<br />\n".
$lang['from'].$pm['msgfrom']."<br />\n".
$lang['dateline'].gmdate("$wapdateformat $timeformat", $pm['dateline'] + $timeoffset * 3600)."<br />\n".
"<br />".nl2br(dhtmlspecialchars(trim($pm['message'])))."<br /><br />\n".
"<a href=\"index.php?action=pm&do=send&pmid=$pmid\">$lang[reply]</a>\n".
"<a href=\"index.php?action=pm&do=delete&pmid=$pmid\">$lang[delete]</a><br /><br />\n".
"<a href=\"index.php?action=pm&do=list\">$lang[pm_all]</a>";
$db->query("UPDATE {$tablepre}pms SET new='0' WHERE pmid='$pmid'");
} elseif($do == 'send') {
if(empty($msgto)) {
if(!empty($pmid)) {
$pm = $db->fetch_first("SELECT msgfrom, subject FROM {$tablepre}pms WHERE pmid='$pmid' AND msgtoid='$discuz_uid' AND folder='inbox'");
$pm['subject'] = 'Re: '.$pm['subject'];
} else {
$pm = array('msgfrom' => '', 'subject' => '');
}
echo "<p>$lang[pm_to]:<input type=\"text\" name=\"msgto\" value=\"$pm[msgfrom]\" maxlength=\"15\" format=\"M*m\" /><br />\n".
"$lang[subject]:<input type=\"text\" name=\"subject\" value=\"$pm[subject]\" maxlength=\"70\" format=\"M*m\" /><br />\n".
"$lang[message]:<input type=\"text\" name=\"message\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=pm&do=send&sid=$sid\">\n".
"<postfield name=\"msgto\" value=\"$(msgto)\" />\n".
"<postfield name=\"subject\" value=\"$(subject)\" />\n".
"<postfield name=\"message\" value=\"$(message)\" />\n".
"<postfield name=\"formhash\" value=\"".formhash()."\" />\n".
"</go></anchor>\n";
} else {
$floodctrl = $floodctrl * 2;
if($floodctrl && !$disablepostctrl && $timestamp - $lastpost < $floodctrl) {
wapmsg('pm_flood_ctrl');
}
if($formhash != formhash()) {
wapmsg('wap_submit_invalid');
}
$msgto = wapconvert($msgto);
$member = $db->fetch_first("SELECT m.uid AS msgtoid, mf.ignorepm FROM {$tablepre}members m
LEFT JOIN {$tablepre}memberfields mf USING (uid)
WHERE username='$msgto'");
if(!$member) {
wapmsg('pm_send_nonexistence');
}
if(preg_match("/(^{ALL}$|(,|^)\s*".preg_quote($discuz_user, '/')."\s*(,|$))/i", $member['ignorepm'])) {
wapmsg('pm_send_ignore');
}
if(empty($subject) || empty($message)) {
wapmsg('pm_sm_isnull');
}
$subject = wapconvert($subject);
$message = wapconvert($message);
$subject = dhtmlspecialchars(cutstr(trim($subject), 75));
$db->query("INSERT INTO {$tablepre}pms (msgfrom, msgfromid, msgtoid, folder, new, subject, dateline, message)
VALUES('$discuz_user', '$discuz_uid', '$member[msgtoid]', 'inbox', '1', '$subject', '$timestamp', '$message')");
$db->query("UPDATE {$tablepre}members SET newpm='1' WHERE uid='$member[msgtoid]'", 'UNBUFFERED');
if($floodctrl) {
$db->query("UPDATE {$tablepre}members SET lastpost='$timestamp' WHERE uid='$discuz_uid'");
}
wapmsg('pm_send_succeed', array('title' => 'pm_home', 'link' => "index.php?action=pm"));
}
} elseif($do == 'delete') {
if(!empty($pmid)) {
$db->query("DELETE FROM {$tablepre}pms WHERE pmid='$pmid' AND msgtoid='$discuz_uid' AND folder='inbox'");
wapmsg('pm_delete_succeed');
} else {
if(empty($confirm)) {
echo "<p><a href=\"index.php?action=pm&do=delete&confirm=yes\">$lang[pm_delete_confirm]</a>";
} else {
$db->query("DELETE FROM {$tablepre}pms WHERE new='0' AND msgtoid='$discuz_uid' AND folder='inbox'");
wapmsg('pm_delete_succeed');
}
}
}
echo "<br /><br /><a href=\"index.php?action=pm\">$lang[pm_home]</a></p>\n";
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/pm.inc.php | PHP | asf20 | 6,193 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home.inc.php 11169 2007-11-08 06:30:00Z tiger $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
$onlinemem = $onlineguest = $forumnum = 0;
echo "<p>$bbname<br />\n";
if($discuz_uid && $newpm) {
if($newpm = $db->result_first("SELECT COUNT(*) FROM {$tablepre}pms WHERE msgtoid='$discuz_uid' AND folder='inbox' AND new='1'")) {
echo "<a href=\"index.php?action=pm&do=list&unread=yes\">$newpm $lang[home_newpm]</a><br />\n";
} else {
$db->query("UPDATE {$tablepre}members SET newpm='0' WHERE uid='$discuz_uid'");
}
}
if($discuz_uid) {
echo (!empty($allowsearch) ? "<br /><a href=\"index.php?action=search&srchfrom=$newthreads&do=submit\">$lang[home_newthreads]</a><br /><a href=\"index.php?action=search\">$lang[search]</a><br />" : '').
"<a href=\"index.php?action=my&do=fav\">$lang[my_favorites]</a><br />".
"<a href=\"index.php?action=my\">$lang[my]</a><br />";
}
echo "<br />$lang[home_forums]<br />";
$sql = !empty($accessmasks) ?
"SELECT f.fid, f.name, ff.viewperm, a.allowview FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE f.status>0 AND f.type='forum' ORDER BY f.displayorder"
: "SELECT f.fid, f.name, ff.viewperm FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff USING(fid)
WHERE f.status>0 AND f.type='forum' ORDER BY f.displayorder";
$query = $db->query($sql);
while($forum = $db->fetch_array($query)) {
if(forum($forum) && (!$forum['viewperm'] || (strexists("\t".trim($forum['viewperm'])."\t", "\t".trim($groupid)."\t") && $forum['viewperm']))) {
echo "<a href=\"index.php?action=forum&fid=$forum[fid]\">".strip_tags($forum['name'])."</a><br/>";
}
if($forumnum ++ >= 10) {
break;
}
}
echo ($forumnum > 10 ? "<a href=\"index.php?action=forum\">$lang[more]</a><br /><br />" : '').
"$lang[home_tools]<br />".
"<a href=\"index.php?action=stats\">$lang[stats]</a><br />".
"<a href=\"index.php?action=goto\">$lang[goto]</a>".
(!empty($allowsearch) ? "<br /><br /><input type=\"text\" name=\"srchtxt\" value=\"\" size=\"8\" emptyok=\"true\" /> ".
"<anchor title=\"submit\">$lang[search]\n".
"<go method=\"post\" href=\"index.php?action=search&do=submit\" />\n".
"<postfield name=\"srchtxt\" value=\"$(srchtxt)\" /></anchor>" : '');
$query = $db->query("SELECT uid, COUNT(*) AS count FROM {$tablepre}sessions GROUP BY uid='0'");
while($online = $db->fetch_array($query)) {
$online['uid'] ? $onlinemem = $online['count'] : $onlineguest = $online['count'];
}
echo "<br /><br />$lang[home_online]".($onlinemem + $onlineguest)."({$onlinemem} $lang[home_members])</p>\n";
?> | zyyhong | trunk/jiaju001/bbs/wap/include/home.inc.php | PHP | asf20 | 2,945 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum.inc.php 11169 2007-11-08 06:30:00Z tiger $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$discuz_action = 192;
$page = max(1, intval($page));
$start_limit = $number = ($page - 1) * $waptpp;
if(!empty($fid)) {
require_once DISCUZ_ROOT.'./include/forum.func.php';
if(empty($forum)) {
wapmsg('forum_nonexistence');
}
if(($forum['viewperm'] && !forumperm($forum['viewperm']) && !$forum['allowview']) || $forum['redirect'] || $forum['password']) {
wapmsg('forum_nopermission');
}
echo "<p>".strip_tags($forum['name'])."<br />".
"<a href=\"index.php?action=post&do=newthread&fid=$forum[fid]\">$lang[post_new]</a> ".
"<a href=\"index.php?action=forum&do=digest&fid=$forum[fid]\">$lang[digest]</a><br /><br />".
"$lang[forum_list] <a href=\"index.php?action=forum&fid=$forum[fid]\">$lang[reload]</a><br />";
$do = !empty($do) ? 'digest' : '';
$filteradd = $do == 'digest' ? 'AND digest>\'0\'' : '';
$threadcount = $db->result_first("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' $filteradd AND displayorder>='0'");
$thread['prefix'] = '';
$query = $db->query("SELECT * FROM {$tablepre}threads
WHERE fid='$fid' $filteradd AND displayorder>='0'
ORDER BY displayorder DESC, lastpost DESC LIMIT $start_limit, $waptpp");
while($thread = $db->fetch_array($query)) {
$thread['prefix'] .= $thread['displayorder'] > 0 ? $lang['forum_thread_sticky'] : '';
$thread['prefix'] .= $thread['digest'] ? $lang['forum_thread_digest'] : '';
echo "<a href=\"index.php?action=thread&tid=$thread[tid]\">#".++$number." ".cutstr($thread['subject'], 30)."</a>$thread[prefix]<br />\n".
"<small>[$thread[author] $lang[replies]$thread[replies] $lang[views]$thread[views]]</small><br />\n";
}
echo wapmulti($threadcount, $waptpp, $page, "index.php?action=forum&fid=$forum[fid]&sid=$sid");
if($do != 'digest') {
$subforums = '';
foreach($_DCACHE['forums'] as $subforum) {
if($subforum['type'] == 'sub' && $subforum['fup'] == $fid && (!$forum['viewperm'] || (strexists("\t".trim($forum['viewperm'])."\t", "\t".trim($groupid)."\t")))) {
$subforums .= "<a href=\"index.php?action=forum&fid=$subforum[fid]\">".strip_tags($subforum['name'])."</a><br />";
}
}
if(!empty($subforums)) {
echo "<br /><br />$lang[forum_sublist]<br />".$subforums;
}
}
echo (!empty($allowsearch) ? "<br /><br /><a href=\"index.php?action=post&do=newthread&fid=$forum[fid]\">$lang[post_new]</a><br />".
"<a href=\"index.php?action=my&do=fav&favid=$forum[fid]&type=forum\">$lang[my_addfav]</a><br />".
"<input type=\"text\" name=\"srchtxt\" value=\"\" size=\"6\" format=\"M*m\" emptyok=\"true\"/>".
"<anchor title=\"submit\">$lang[search]\n".
"<go method=\"post\" href=\"index.php?action=search&srchfid=$forum[fid]&do=submit&sid=$sid\">\n".
"<postfield name=\"srchtxt\" value=\"$(srchtxt)\" />\n".
"</go></anchor><br />" : '').
"</p>";
} else {
echo "<p>$lang[home_forums]<br />";
$forumcount = $db->result_first("SELECT COUNT(*) FROM {$tablepre}forums WHERE status>0 AND type='forum'");
$sql = !empty($accessmasks) ?
"SELECT f.fid, f.name, ff.viewperm, a.allowview FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE f.status>0 AND f.type='forum' ORDER BY f.displayorder LIMIT $start_limit, $waptpp"
: "SELECT f.fid, f.name, ff.viewperm FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff USING(fid)
WHERE f.status>0 AND f.type='forum' ORDER BY f.displayorder LIMIT $start_limit, $waptpp";
$query = $db->query($sql);
while($forum = $db->fetch_array($query)) {
if(forum($forum) && (!$forum['viewperm'] || (strexists("\t".trim($forum['viewperm'])."\t", "\t".trim($groupid)."\t") && $forum['viewperm']))) {
echo "<a href=\"index.php?action=forum&fid=$forum[fid]\">".strip_tags($forum['name'])."</a><br/>";
}
}
echo wapmulti($forumcount, $waptpp, $page, "index.php?action=forum&sid=$sid");
echo "</p>";
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/forum.inc.php | PHP | asf20 | 4,307 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: global.func.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
function wapheader($title) {
global $action, $_SERVER;
header("Content-type: text/vnd.wap.wml; charset=utf-8");
/*
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
*/
echo "<?xml version=\"1.0\"?>\n".
"<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n".
"<wml>\n".
"<head>\n".
"<meta http-equiv=\"cache-control\" content=\"max-age=180,private\" />\n".
"</head>\n".
"<card id=\"discuz_wml\" title=\"$title\">\n";
// newcontext=\"true\"
}
function wapfooter() {
global $discuz_uid, $discuz_user, $lang, $action, $settings, $timestamp, $timeoffset, $wapdateformat, $timeformat;
echo "<p>".gmdate("$wapdateformat $timeformat", $timestamp + ($timeoffset * 3600))."<br />".
($action != 'home' ? "<anchor title=\"confirm\"><prev/>$lang[return]</anchor> <a href=\"index.php\">$lang[home_page]</a><br />" : '').
($discuz_uid ? "<a href=\"index.php?action=login&logout=yes&formhash=".FORMHASH."\">$discuz_user:$lang[logout]</a>" : "<a href=\"index.php?action=login\">$lang[login]</a> <a href=\"index.php?action=register\">$lang[register]</a>")."<br /><br />\n".
"<small><a href=\"http://wap.jiaju001.com\">wap.jiaju001.com</a></small></p>\n".
//"<do type=\"prev\" label=\"$lang[return]\"><exit /></do>\n".
"</card>\n".
"</wml>";
updatesession();
wmloutput();
}
function wapmsg($message, $forward = array()) {
extract($GLOBALS, EXTR_SKIP);
if(isset($lang[$message])) {
eval("\$message = \"".$lang[$message]."\";");
}
echo "<p>$message".
($forward ? "<br /><a href=\"$forward[link]\">".(isset($lang[$forward['title']]) ? $lang[$forward['title']] : $forward['title'])."</a>" : '').
"</p>\n";
wapfooter();
exit();
}
function wapmulti($num, $perpage, $curpage, $mpurl) {
global $lang;
$multipage = '';
$mpurl .= strpos($mpurl, '?') ? '&' : '?';
if($num > $perpage) {
$page = 3;
$offset = 2;
$realpages = @ceil($num / $perpage);
$pages = $realpages;
if($page > $pages) {
$from = 1;
$to = $pages;
} else {
$from = $curpage - $offset;
$to = $from + $page - 1;
if($from < 1) {
$to = $curpage + 1 - $from;
$from = 1;
if($to - $from < $page) {
$to = $page;
}
} elseif($to > $pages) {
$from = $pages - $page + 1;
$to = $pages;
}
}
$multipage = ($curpage - $offset > 1 && $pages > $page ? '<a href="'.$mpurl.'page=1">'.$lang['home_page'].'</a>' : '').
($curpage > 1 ? ' <a href="'.$mpurl.'page='.($curpage - 1).'">'.$lang['last_page'].'</a>' : '');
for($i = $from; $i <= $to; $i++) {
$multipage .= $i == $curpage ? ' '.$i : ' <a href="'.$mpurl.'page='.$i.'">'.$i.'</a>';
}
$multipage .= ($curpage < $pages ? ' <a href="'.$mpurl.'page='.($curpage + 1).'">'.$lang['next_page'].'</a>' : '').
($to < $pages ? ' <a href="'.$mpurl.'page='.$pages.'">'.$lang['end_page'].'</a>' : '');
$multipage .= $realpages > $page ?
'<br />'.$curpage.'/'.$realpages.$lang['page'].'<input type="text" name="page" size="2" emptyok="true" /> '.
'<anchor title="submit">'.$lang['turn_page'].'<go method="post" href="'.$mpurl.'">'.
'<postfield name="page" value="$(page)" />'.
'</go></anchor>' : '';
}
return $multipage;
}
function wapcutstr($string, &$length) {
$strcut = '';
if(strlen($string) > $length) {
for($i = 0; $i < $length - 3; $i++) {
$strcut .= ord($string[$i]) > 127 ? $string[$i].$string[++$i] : $string[$i];
}
$length = $i;
return $strcut.' ..';
} else {
return $string;
}
}
function wapcode($string) {
global $lang;
$string = str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $string);
$string = preg_replace("/\[hide\](.+?)\[\/hide\]/is", $lang['post_hide_reply_hidden'], $string);
$string = preg_replace("/\[hide=(\d+)\]\s*(.+?)\s*\[\/hide\]/ies", $lang['post_hide_reply_hidden'], $string);
for($i = 0; $i < 5; $i++) {
$string = preg_replace("/\[(\w+)[^\]]*?\](.*?)\[\/\\1\]/is", "\\2", $string);
}
return $string;
}
function wmloutput() {
global $sid, $charset, $wapcharset;
static $chs;
$content = preg_replace("/\<a(\s*[^\>]+\s*)href\=([\"|\']?)([^\"\'\s]+)/ies", "transsid('\\3','<a\\1href=\\2',1)", ob_get_contents());
ob_end_clean();
if($charset != 'utf-8') {
$target = $wapcharset == 1 ? 'UTF-8' : 'UNICODE';
if(empty($chs)) {
$chs = new Chinese($charset, $target);
} else {
$chs->config['SourceLang'] = $chs->_lang($charset);
$chs->config['TargetLang'] = $target;
}
echo ($wapcharset == 1 ? $chs->Convert($content) : str_replace(array('&#x;', '�'), array('??', ''), $chs->Convert($content)));
} else {
echo $content;
}
}
function wapconvert($str) {
static $chs;
if($str != '' && !is_numeric($str) && $GLOBALS['charset'] != 'utf-8') {
$chs = empty($chs) ? new Chinese('UTF-8', $GLOBALS['charset']) : $chs;
if(is_array($str)) {
foreach($str as $key => $val) {
$str[$key] = wapconvert($val);
}
} else {
$str = addslashes($chs->Convert(stripslashes($str)));
}
}
return $str;
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/global.func.php | PHP | asf20 | 5,560 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: search.inc.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$cachelife_time = 300; // Life span for cache of searching in specified range of time
$cachelife_text = 3600; // Life span for cache of text searching
if(!$allowsearch) {
wapmsg('search_group_nopermission');
}
$do = !empty($do) ? $do : '';
if($do != 'submit') {
echo "<p>$lang[search]<br />".
"$lang[keywords]:<input type=\"text\" name=\"srchtxt\" value=\"\" maxlength=\"15\" format=\"M*m\" /><br />\n".
"$lang[username]:<input type=\"text\" name=\"srchuname\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=search&do=submit\">\n".
"<postfield name=\"sid\" value=\"$sid\" />\n".
"<postfield name=\"srchtxt\" value=\"$(srchtxt)\" />\n".
"<postfield name=\"srchuname\" value=\"$(srchuname)\" />\n".
"</go></anchor></p>";
} else {
if(isset($searchid)) {
$page = max(1, intval($page));
$start_limit = $number = ($page - 1) * $waptpp;
$index = $db->fetch_first("SELECT searchstring, keywords, threads, tids FROM {$tablepre}searchindex WHERE searchid='$searchid'");
if(!$index) {
wapmsg('search_id_invalid');
}
$index['keywords'] = rawurlencode($index['keywords']);
$index['searchtype'] = preg_replace("/^([a-z]+)\|.*/", "\\1", $index['searchstring']);
$searchnum = $db->result_first("SELECT COUNT(*) FROM {$tablepre}threads WHERE tid IN ($index[tids]) AND displayorder>='0'");
if($searchnum) {
echo "<p>$lang[search_result]<br />";
$query = $db->query("SELECT * FROM {$tablepre}threads WHERE tid IN ($index[tids]) AND displayorder>='0' ORDER BY dateline DESC LIMIT $start_limit, $waptpp");
while($thread = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=thread&tid=$thread[tid]\">#".++$number." ".cutstr($thread['subject'], 24)."</a>($thread[views]/$thread[replies])<br />\n";
}
echo wapmulti($searchnum, $waptpp, $page, "index.php?action=search&searchid=$searchid&do=submit&sid=$sid");
echo '</p>';
} else {
wapmsg('search_invalid');
}
} else {
$srchtxt = trim(wapconvert($srchtxt));
$srchuname = trim(wapconvert($srchuname));
$srchuid = intval($srchuid);
$searchstring = 'title|'.addslashes($srchtxt).'|'.$srchuid.'|'.$srchuname;
$searchindex = array('id' => 0, 'dateline' => '0');
$query = $db->query("SELECT searchid, dateline,
('$searchctrl'<>'0' AND ".(empty($discuz_uid) ? "useip='$onlineip'" : "uid='$discuz_uid'")." AND $timestamp-dateline<$searchctrl) AS flood,
(searchstring='$searchstring' AND expiration>'$timestamp') AS indexvalid
FROM {$tablepre}searchindex
WHERE ('$searchctrl'<>'0' AND ".(empty($discuz_uid) ? "useip='$onlineip'" : "uid='$discuz_uid'")." AND $timestamp-dateline<$searchctrl) OR (searchstring='$searchstring' AND expiration>'$timestamp')
ORDER BY flood");
while($index = $db->fetch_array($query)) {
if($index['indexvalid'] && $index['dateline'] > $searchindex['dateline']) {
$searchindex = array('id' => $index['searchid'], 'dateline' => $index['dateline']);
break;
} elseif($index['flood']) {
wapmsg('search_ctrl');
}
}
if($searchindex['id']) {
$searchid = $searchindex['id'];
} else {
if(empty($srchfid)) {
$srchfid = 'all';
}
if(!$srchtxt && !empty($srchuid) && !$srchuname && !$srchfrom) {
wapmsg('search_invalid');
}
if(!empty($srchfrom) && empty($srchtxt) && empty($srchuid) && empty($srchuname)) {
$searchfrom = !empty($before) ? '<=' : '>=';
$searchfrom .= $timestamp - $srchfrom;
$sqlsrch = "FROM {$tablepre}threads t WHERE t.displayorder>='0' AND t.lastpost$searchfrom";
$expiration = $timestamp + $cachelife_time;
$keywords = '';
} else {
if(!empty($mytopics) && $srchuid) {
$srchfrom = 2592000;
$srchuname = $srchtxt = $before = '';
}
$sqlsrch = "FROM {$tablepre}threads t WHERE t.displayorder>='0'";
if($srchuname) {
$srchuid = $comma = '';
$srchuname = str_replace('*', '%', addcslashes($srchuname, '%_'));
$query = $db->query("SELECT uid FROM {$tablepre}members WHERE username LIKE '".str_replace('_', '\_', $srchuname)."' LIMIT 50");
while($member = $db->fetch_array($query)) {
$srchuid .= "$comma'$member[uid]'";
$comma = ', ';
}
if(!$srchuid) {
$sqlsrch .= ' AND 0';
}
} elseif($srchuid) {
$srchuid = "'$srchuid'";
}
$sqltxtsrch = '';
if($srchtxt) {
$srchtxt = str_replace('*', '%', addcslashes($srchtxt, '%_'));
$sqltxtsrch .= "t.subject LIKE '%$srchtxt%'";
$sqlsrch .= " AND ($sqltxtsrch)";
}
if($srchuid) {
$sqlsrch .= " AND authorid IN ($srchuid)";
}
if($srchfid != 'all' && $srchfid) {
$sqlsrch .= " AND fid='$srchfid'";
}
$keywords = str_replace('%', '+', $srchtxt).(trim($srchuname) ? '+'.str_replace('%', '+', $srchuname) : '');
$expiration = $timestamp + $cachelife_text;
}
$threads = $tids = 0;
$query = $db->query("SELECT DISTINCT t.tid, t.closed $sqlsrch ORDER BY tid DESC LIMIT $maxsearchresults");
while($thread = $db->fetch_array($query)) {
if($thread['closed'] <= 1) {
$tids .= ','.$thread['tid'];
$threads++;
}
}
$db->free_result($query);
$db->query("INSERT INTO {$tablepre}searchindex (keywords, searchstring, useip, uid, dateline, expiration, threads, tids)
VALUES ('$keywords', '$searchstring', '$onlineip', '$discuz_uid', '$timestamp', '$expiration', '$threads', '$tids')");
$searchid = $db->insert_id();
}
header("Location: index.php?action=search&searchid=$searchid&do=submit&sid=$sid");
}
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/search.inc.php | PHP | asf20 | 6,008 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: register.inc.php 16725 2008-11-17 04:41:46Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if($discuz_uid) {
wapmsg('login_succeed');
}
if(!$wapregister) {
wapmsg('register_disable');
}
$groupinfo = $db->fetch_first("SELECT groupid FROM {$tablepre}usergroups WHERE ".($regverify ? "groupid='8'" : "creditshigher<=".intval($initcredits)." AND ".intval($initcredits)."<creditslower LIMIT 1"));
if(empty($username)) {
echo "<p>$lang[register_username]:<input type=\"text\" name=\"username\" value=\"\" maxlength=\"15\" /><br />\n".
"$lang[password]: <input type=\"password\" name=\"password\" value=\"\" /><br />\n".
"$lang[email]: <input type=\"text\" name=\"email\" value=\"\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=register&sid=$sid\">\n".
"<postfield name=\"username\" value=\"$(username)\" />\n".
"<postfield name=\"password\" value=\"$(password)\" />\n".
"<postfield name=\"email\" value=\"$(email)\" />\n".
"</go></anchor></p>\n";
} else {
$email = trim(wapconvert($email));
$username = trim(wapconvert($username));
$regmessage = dhtmlspecialchars(wapconvert($regmessage));
if(strlen($username) > 15) {
wapmsg('profile_username_toolang');
}
if(strlen($username) < 3) {
wapmsg('profile_username_tooshort');
}
$guestexp = '\xA1\xA1|\xAC\xA3|^Guest|^\xD3\xCE\xBF\xCD|\xB9\x43\xAB\xC8';
$censorexp = '/^('.str_replace(array('\\*', "\r\n", ' '), array('.*', '|', ''), preg_quote(($censoruser = trim($censoruser)), '/')).')$/i';
if(preg_match("/^\s*$|^c:\\con\\con$|[%,\*\"\s\t\<\>\&]|$guestexp/is", $username) || ($censoruser && @preg_match($censorexp, $username))) {
wapmsg('profile_username_illegal');
}
if(!$password || $password != addslashes($password)) {
wapmsg('profile_passwd_illegal');
}
$accessexp = '/('.str_replace("\r\n", '|', preg_quote($accessemail, '/')).')$/i';
$censorexp = '/('.str_replace("\r\n", '|', preg_quote($censoremail, '/')).')$/i';
$invalidemail = $accessemail ? !preg_match($accessexp, $email) : $censoremail && preg_match($censorexp, $email);
if(!isemail($email) || $invalidemail) {
wapmsg('profile_email_illegal');
}
if($ipregctrl) {
foreach(explode("\n", $ipregctrl) as $ctrlip) {
if(preg_match("/^(".preg_quote(($ctrlip = trim($ctrlip)), '/').")/", $onlineip)) {
$ctrlip = $ctrlip.'%';
$regctrl = 72;
break;
}
}
} else {
$ctrlip = $onlineip;
}
if($regctrl) {
$query = $db->query("SELECT ip FROM {$tablepre}regips WHERE ip LIKE '$ctrlip' AND count='-1' AND dateline>$timestamp-'$regctrl'*3600 LIMIT 1");
if($db->num_rows($query)) {
wapmsg('register_ctrl', NULL, 'HALTED');
}
}
$query = $db->query("SELECT uid FROM {$tablepre}members WHERE username='$username'");
if($db->num_rows($query)) {
wapmsg('profile_username_duplicate');
}
if(!$doublee) {
$query = $db->query("SELECT uid FROM {$tablepre}members WHERE email='$email' LIMIT 1");
if($db->num_rows($query)) {
wapmsg('profile_email_duplicate');
}
}
if($regfloodctrl) {
if($regattempts = $db->result_first("SELECT count FROM {$tablepre}regips WHERE ip='$onlineip' AND count>'0' AND dateline>'$timestamp'-86400")) {
if($regattempts >= $regfloodctrl) {
showmessage('register_flood_ctrl', NULL, 'HALTED');
} else {
$db->query("UPDATE {$tablepre}regips SET count=count+1 WHERE ip='$onlineip' AND count>'0'");
}
} else {
$db->query("INSERT INTO {$tablepre}regips (ip, count, dateline)
VALUES ('$onlineip', '1', '$timestamp')");
}
}
$password = md5($password);
$idstring = random(6);
$authstr = $regverify == 1 ? "$timestamp\t2\t$idstring" : '';
$db->query("INSERT INTO {$tablepre}members (username, password, secques, gender, adminid, groupid, regip, regdate, lastvisit, lastactivity, posts, credits, extcredits1, extcredits2, extcredits3, extcredits4, extcredits5, extcredits6, extcredits7, extcredits8, email, bday, sigstatus, tpp, ppp)
VALUES ('$username', '$password', '', '', '0', '$groupinfo[groupid]', '$onlineip', '$timestamp', '$timestamp', '$timestamp', '0', $initcredits, '$email', '', '', '20', '20')");
$uid = $db->insert_id();
$db->query("REPLACE INTO {$tablepre}memberfields (uid, authstr) VALUES ('$uid', '$authstr')");
if($regverify == 2) {
$db->query("REPLACE INTO {$tablepre}validating (uid, submitdate, moddate, admin, submittimes, status, message, remark)
VALUES ('$uid', '$timestamp', '0', '', '1', '0', '$regmessage', '')");
}
$discuz_uid = $uid;
$discuz_user = $username;
$discuz_userss = stripslashes($discuz_user);
$discuz_pw = $password;
$groupid = $groupinfo['groupid'];
$styleid = $styleid ? $styleid : $_DCACHE['settings']['styleid'];
switch($regverify) {
case 1:
sendmail("$discuz_userss <$email>", 'email_verify_subject', 'email_verify_message');
wapmsg('profile_email_verify');
break;
case 2:
wapmsg('register_manual_verify', array('title' =>'memcp', 'link' => 'memcp.php'));
break;
default:
wapmsg('register_succeed', array('title' =>'home_page', 'link' => 'index.php'));
break;
}
}
?>
| zyyhong | trunk/jiaju001/bbs/wap/include/register.inc.php | PHP | asf20 | 5,371 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: login.inc.php 16713 2008-11-17 03:25:20Z cnteacher $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
require_once DISCUZ_ROOT.'./include/misc.func.php';
if(empty($logout)) {
if(empty($username)) {
echo "<p>$lang[login_username]:<input type=\"text\" name=\"username\" maxlength=\"15\" format=\"M*m\" /><br />\n".
"$lang[password]: <input type=\"password\" name=\"password\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=login&sid=$sid\">\n".
"<postfield name=\"username\" value=\"$(username)\" />\n".
"<postfield name=\"password\" value=\"$(password)\" />\n".
"</go></anchor></p>\n";
} else {
$loginperm = logincheck();
if(!$loginperm) {
wapmsg('login_strike');
}
$answer = wapconvert($answer);
$username = wapconvert($username);
$secques = quescrypt($questionid, $answer);
if(isset($loginauth)) {
list($username, $md5_password) = daddslashes(explode("\t", authcode($loginauth, 'DECODE')), 1);
} else {
$md5_password = md5($password);
}
$usernameadd = preg_match("/^\d+$/", $username) ? "(uid='$username' OR username='$username')" : "username='$username'";
$member = $db->fetch_first("SELECT uid AS discuz_uid, username AS discuz_user, password AS discuz_pw, secques AS discuz_secques, groupid, invisible
FROM {$tablepre}members WHERE $usernameadd");
if($member['discuz_uid'] && $member['discuz_pw'] == $md5_password) {
if($member['discuz_secques'] && $member['discuz_secques'] != $secques) {
$loginauth = authcode($member['discuz_user']."\t".$member['discuz_pw'], 'ENCODE');
echo "<p>$lang[security_question]:
<select name=\"questionid\">
<option value=\"0\">$lang[security_question_0]</option>
<option value=\"1\">$lang[security_question_1]</option>
<option value=\"2\">$lang[security_question_2]</option>
<option value=\"3\">$lang[security_question_3]</option>
<option value=\"4\">$lang[security_question_4]</option>
<option value=\"5\">$lang[security_question_5]</option>
<option value=\"6\">$lang[security_question_6]</option>
<option value=\"7\">$lang[security_question_7]</option>
</select><br />\n".
"$lang[security_answer]: <input type=\"answer\" name=\"answer\" value=\"\" format=\"M*m\" /><br />\n".
"<anchor title=\"$lang[submit]\">$lang[submit]".
"<go method=\"post\" href=\"index.php?action=login&sid=$sid\">\n".
"<postfield name=\"questionid\" value=\"$(questionid)\" />\n".
"<postfield name=\"answer\" value=\"$(answer)\" />\n".
"<postfield name=\"username\" value=\"$member[discuz_user]\" />\n".
"<postfield name=\"loginauth\" value=\"$loginauth\" />\n".
"</go></anchor></p>\n";
} else {
@extract($member);
dsetcookie('auth', authcode("$discuz_pw\t$discuz_secques\t$discuz_uid", 'ENCODE'), 2592000);
wapmsg('login_succeed');
}
} else {
$errorlog = dhtmlspecialchars(
$timestamp."\t".
($member['discuz_user'] ? $member['discuz_user'] : stripslashes($username))."\t".
$password."\t".
($secques ? "Ques #".intval($questionid) : '')."\t".
$onlineip);
writelog('illegallog', $errorlog);
loginfailed($loginperm);
wapmsg('login_invalid');
}
}
} elseif(!empty($formhash) && $formhash == FORMHASH) {
$discuz_uid = 0;
$discuz_user = '';
$groupid = 7;
wapmsg('logout_succeed');
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/login.inc.php | PHP | asf20 | 3,657 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: my.inc.php 11169 2007-11-08 06:30:00Z tiger $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if(empty($discuz_uid)) {
wapmsg('not_loggedin');
}
$uid = !empty($uid) ? intval($uid) : $discuz_uid;
$username = !empty($username) ? dhtmlspecialchars($username) : '';
$usernameadd = $uid ? "m.uid='$uid'" : "m.username='$username'";
if(empty($do)) {
$member = $db->fetch_first("SELECT m.*, mf.* FROM {$tablepre}members m
LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
WHERE $usernameadd LIMIT 1");
if(!$member) {
wapmsg('my_nonexistence');
}
if($member['gender'] == '1') {
$member['gender'] = $lang['my_male'];
} elseif($member['gender'] == '2') {
$member['gender'] = $lang['my_female'];
} else {
$member['gender'] = $lang['my_secrecy'];
}
echo "<p>$lang[my]<br /><br />".
"$lang[my_uid] $member[uid]<br />".
"$lang[my_username] $member[username]<br />".
"$lang[my_gender] $member[gender]<br />".
($member['bday'] != '0000-00-00' ? "$lang[my_bday] $member[bday]<br />" : '').
($member['location'] ? "$lang[my_location] $member[location]<br />" : '').
($member['bio'] ? "$lang[my_bio] $member[bio]<br /><br />" : '');
if($uid == $discuz_uid) {
echo "<a href=\"index.php?action=myphone\">$lang[my_phone]</a><br />".
"<a href=\"index.php?action=my&do=fav\">$lang[my_favorites]</a><br />".
"<a href=\"index.php?action=pm\">$lang[pm]</a></p>";
} else {
echo "<br /><a href=\"index.php?action=pm&do=send&pmuid=$member[uid]\">$lang[pm_send]</a></p>";
}
} else {
if($do == 'fav') {
if(!empty($favid)) {
$selectid = $type == 'thread' ? 'tid' : 'fid';
if($db->result_first("SELECT $selectid FROM {$tablepre}favorites WHERE uid='$discuz_uid' AND $selectid='$favid' LIMIT 1")) {
wapmsg('fav_existence');
} else {
$db->query("INSERT INTO {$tablepre}favorites (uid, $selectid)
VALUES ('$discuz_uid', '$favid')");
wapmsg('fav_add_succeed');
}
} else {
echo "<p>$lang[my_threads]<br />";
$query = $db->query("SELECT m.*, t.subject FROM {$tablepre}mythreads m, {$tablepre}threads t
WHERE m.uid = '$discuz_uid' AND m.tid = t.tid ORDER BY m.dateline DESC LIMIT 0, 3");
while($mythread = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=thread&tid=$mythread[tid]\">".cutstr($mythread['subject'], 15)."</a><br />";
}
echo "<br />$lang[my_replies]<br />";
$query = $db->query("SELECT m.*, t.subject FROM {$tablepre}myposts m, {$tablepre}threads t
WHERE m.uid = '$discuz_uid' AND m.tid = t.tid ORDER BY m.dateline DESC LIMIT 0, 3");
while($mypost = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=thread&tid=$mypost[tid]\">".cutstr($mypost['subject'], 15)."</a><br />";
}
echo "<br />$lang[my_fav_thread]<br />";
$query = $db->query("SELECT t.tid, t.subject FROM {$tablepre}favorites fav, {$tablepre}threads t
WHERE fav.tid=t.tid AND t.displayorder>='0' AND fav.uid='$discuz_uid' ORDER BY t.lastpost DESC LIMIT 0, 3");
while($favthread = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=thread&tid=$favthread[tid]\">".cutstr($favthread['subject'], 24)."</a><br />";
}
echo "<br />$lang[my_fav_forum]<br />";
$query = $db->query("SELECT f.fid, f.name FROM {$tablepre}favorites fav, {$tablepre}forums f WHERE fav.uid='$discuz_uid' AND fav.fid=f.fid ORDER BY f.displayorder DESC LIMIT 0, 3");
while($favforum = $db->fetch_array($query)) {
echo "<a href=\"index.php?action=forum&fid=$favforum[fid]\">$favforum[name]</a><br />";
}
echo '</p>';
}
}
}
?> | zyyhong | trunk/jiaju001/bbs/wap/include/my.inc.php | PHP | asf20 | 3,798 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: index.php 10486 2007-09-03 06:53:29Z liuqiang $
*/
define('CURSCRIPT', 'index');
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
$discuz_action = 1;
if($cacheindexlife && !$discuz_uid && $showoldetails != 'yes' && (!$_DCACHE['settings']['frameon'] || $_DCACHE['settings']['frameon'] && $_GET['frameon'] != 'yes') && empty($gid)) {
$indexcache = getcacheinfo(0);
if($timestamp - $indexcache['filemtime'] > $cacheindexlife) {
@unlink($indexcache['filename']);
define('CACHE_FILE', $indexcache['filename']);
$styleid = $_DCACHE['settings']['styleid'];
} elseif($indexcache['filename']) {
@readfile($indexcache['filename']);
$debug && debuginfo();
die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " '.($debug ? 'Update at '.gmdate("H:i:s", $indexcache['filemtime'] + 3600 * 8).', Processed in '.$debuginfo['time'].' second(s), '.$debuginfo['queries'].' Queries'.($gzipcompress ? ', Gzip enabled' : '') : '').'";</script>');
}
}
$validdays = $discuz_uid && !empty($groupexpiry) && $groupexpiry >= $timestamp ? ceil(($groupexpiry - $timestamp) / 86400) : 0;
if(isset($showoldetails)) {
switch($showoldetails) {
case 'no': dsetcookie('onlineindex', 0, 86400 * 365); break;
case 'yes': dsetcookie('onlineindex', 1, 86400 * 365); break;
}
} else {
$showoldetails = false;
}
$currenttime = gmdate($timeformat, $timestamp + $timeoffset * 3600);
$lastvisittime = gmdate("$dateformat $timeformat", $lastvisit + $timeoffset * 3600);
$memberenc = rawurlencode($lastmember);
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
$rsshead = $rssstatus ? ('<link rel="alternate" type="application/rss+xml" title="'.$bbname.'" href="'.$boardurl.'rss.php?auth='.$rssauth."\" />\n") : '';
$customtopics = '';
if($qihoo['maxtopics']) {
foreach(explode("\t", isset($_DCOOKIE['customkw']) ? $_DCOOKIE['customkw'] : '') as $topic) {
$topic = dhtmlspecialchars(trim(stripslashes($topic)));
$customtopics .= '<a href="topic.php?keyword='.rawurlencode($topic).'" target="_blank">'.$topic.'</a> ';
}
}
$supeitemsstatus = $supe['status'] && $supe['items']['status'] && $_DCACHE['supe_updateitems'];
$hottagstatus = $tagstatus && $hottags && $_DCACHE['tags'];
$catlist = $forumlist = $sublist = $pmlist = array();
$threads = $posts = $todayposts = $fids = $announcepm = 0;
$postdata = $historyposts ? explode("\t", $historyposts) : array();
foreach(array('forumlinks', 'birthdays', 'supe_updateusers') as $key) {
if(!isset($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], $key) === FALSE) {
$collapseimg[$key] = 'collapsed_no.gif';
$collapse[$key] = '';
} else {
$collapseimg[$key] = 'collapsed_yes.gif';
$collapse[$key] = 'display: none';
}
}
$gid = !empty($gid) ? intval($gid) : 0;
$areaid = !empty($areaid) ? intval($areaid) : 2;
if(!$gid) {
$announcements = '';
if($_DCACHE['announcements']) {
$readapmids = !empty($_DCOOKIE['readapmid']) ? explode('D', $_DCOOKIE['readapmid']) : array();
foreach($_DCACHE['announcements'] as $announcement) {
if(empty($announcement['groups']) || in_array($groupid, $announcement['groups'])) {
if(empty($announcement['type'])) {
$announcements .= '<li><a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'">'.$announcement['subject'].
'<em>('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</em></a></li>';
} elseif($announcement['type'] == 1) {
$announcements .= '<li><a href="'.$announcement['message'].'" target="_blank">'.$announcement['subject'].
'<em>('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</em></a></li>';
} elseif($discuz_uid && $announcement['type'] == 2 && !in_array($announcement['pmid'], $readapmids)) {
$announcement['announce'] = TRUE;
$pmlist[] = $announcement;
$announcepm++;
}
}
}
}
unset($_DCACHE['announcements']);
$sql = !empty($accessmasks) ?
"SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm, a.allowview FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid
LEFT JOIN {$tablepre}access a ON a.uid='$discuz_uid' AND a.fid=f.fid
WHERE f.status>0 AND f.areaid='$areaid' OR f.areaid='999' ORDER BY f.type, f.displayorder"
: "SELECT f.fid, f.fup, f.type, f.name, f.threads, f.posts, f.todayposts, f.lastpost, f.inheritedmod, f.forumcolumns, f.simple, ff.description, ff.moderators, ff.icon, ff.viewperm FROM {$tablepre}forums f
LEFT JOIN {$tablepre}forumfields ff USING(fid)
WHERE f.status>0 AND f.areaid='$areaid' OR f.areaid='999' ORDER BY f.type, f.displayorder";
$query = $db->query($sql);
while($forum = $db->fetch_array($query)) {
$forumname[$forum['fid']] = strip_tags($forum['name']);
if($forum['type'] != 'group') {
$threads += $forum['threads'];
$posts += $forum['posts'];
$todayposts += $forum['todayposts'];
if($forum['type'] == 'forum') {
if(forum($forum)) {
$catlist[$forum['fup']]['forums'][] = $forum['fid'];
$forum['orderid'] = $catlist[$forum['fup']]['forumscount']++;
$forum['subforums'] = '';
$forumlist[$forum['fid']] = $forum;
}
} elseif(isset($forumlist[$forum['fup']])) {
$forumlist[$forum['fup']]['threads'] += $forum['threads'];
$forumlist[$forum['fup']]['posts'] += $forum['posts'];
$forumlist[$forum['fup']]['todayposts'] += $forum['todayposts'];
if($subforumsindex && $forumlist[$forum['fup']]['permission'] == 2 && !($forumlist[$forum['fup']]['simple'] & 16) || ($forumlist[$forum['fup']]['simple'] & 8)) {
$forumlist[$forum['fup']]['subforums'] .= '<a href="forumdisplay.php?fid='.$forum['fid'].'">'.$forum['name'].'</a> ';
}
}
} else {
if(!isset($_COOKIE['discuz_collapse']) || strpos($_COOKIE['discuz_collapse'], 'category_'.$forum['fid']) === FALSE) {
$forum['collapseimg'] = 'collapsed_no.gif';
$collapse['category_'.$forum['fid']] = '';
} else {
$forum['collapseimg'] = 'collapsed_yes.gif';
$collapse['category_'.$forum['fid']] = 'display: none';
}
if($forum['moderators']) {
$forum['moderators'] = moddisplay($forum['moderators'], 'flat');
}
$forum['forumscount'] = 0;
$catlist[$forum['fid']] = $forum;
}
}
foreach($catlist as $catid => $category) {
if($catlist[$catid]['forumscount'] && $category['forumcolumns']) {
$catlist[$catid]['forumcolwidth'] = floor(100 / $category['forumcolumns']).'%';
$catlist[$catid]['endrows'] = '';
if($colspan = $category['forumscount'] % $category['forumcolumns']) {
while(($category['forumcolumns'] - $colspan) > 0) {
$catlist[$catid]['endrows'] .= '<td> </td>';
$colspan ++;
}
$catlist[$catid]['endrows'] .= '</tr>';
}
} elseif(empty($category['forumscount'])) {
unset($catlist[$catid]);
}
}
if(isset($catlist[0]) && $catlist[0]['forumscount']) {
$catlist[0]['fid'] = 0;
$catlist[0]['type'] = 'group';
$catlist[0]['name'] = $bbname;
$catlist[0]['collapseimg'] = 'collapsed_no.gif';
} else {
unset($catlist[0]);
}
if($whosonlinestatus == 1 || $whosonlinestatus == 3) {
$whosonlinestatus = 1;
$onlineinfo = explode("\t", $onlinerecord);
if(empty($_DCOOKIE['onlineusernum'])) {
$onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
if($onlinenum > $onlineinfo[0]) {
$_DCACHE['settings']['onlinerecord'] = $onlinerecord = "$onlinenum\t$timestamp";
$db->query("UPDATE {$tablepre}settings SET value='$onlinerecord' WHERE variable='onlinerecord'");
require_once DISCUZ_ROOT.'./include/cache.func.php';
updatesettings();
$onlineinfo = array($onlinenum, $timestamp);
}
dsetcookie('onlineusernum', intval($onlinenum), 300);
} else {
$onlinenum = intval($_DCOOKIE['onlineusernum']);
}
$onlineinfo[1] = gmdate($dateformat, $onlineinfo[1] + ($timeoffset * 3600));
$detailstatus = $showoldetails == 'yes' || (((!isset($_DCOOKIE['onlineindex']) && !$whosonline_contract) || $_DCOOKIE['onlineindex']) && $onlinenum < 500 && !$showoldetails);
if($detailstatus) {
@include language('actions');
$discuz_uid && updatesession();
$membercount = $invisiblecount = 0;
$whosonline = array();
$maxonlinelist = $maxonlinelist ? $maxonlinelist : 500;
$query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ".(isset($_DCACHE['onlinelist'][7]) ? '' : 'WHERE uid <> 0')." ORDER BY uid DESC LIMIT ".$maxonlinelist);
while($online = $db->fetch_array($query)) {
if($online['uid']) {
$membercount ++;
if($online['invisible']) {
$invisiblecount++;
continue;
} else {
$online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
}
} else {
$online['icon'] = $_DCACHE['onlinelist'][7];
$online['username'] = $_DCACHE['onlinelist']['guest'];
}
$online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
$online['action'] = $actioncode[$online['action']];
$online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
$whosonline[] = $online;
}
if($onlinenum > $maxonlinelist) {
$membercount = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions WHERE uid <> '0'"), 0);
$invisiblecount = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions WHERE invisible = '1'"), 0);
}
if($onlinenum < $membercount) {
$onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
dsetcookie('onlineusernum', intval($onlinenum), 300);
}
$guestcount = $onlinenum - $membercount;
$db->free_result($query);
unset($online);
}
} else {
$whosonlinestatus = 0;
}
if($discuz_uid && $newpm) {
require_once DISCUZ_ROOT.'./include/pmprompt.inc.php';
}
} else {
require_once DISCUZ_ROOT.'./include/category.inc.php';
}
include template('discuz');
?>
| zyyhong | trunk/jiaju001/bbs/shy.php | PHP | asf20 | 10,579 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: eccredit.php 10496 2007-09-03 08:57:02Z monkey $
*/
define('NOROBOT', TRUE);
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/ec_credit.func.php';
if(empty($action)) {
$uid = intval($uid);
$allowviewpro = $discuz_uid && $uid == $discuz_uid ? 1 : $allowviewpro;
if(!$allowviewpro) {
showmessage('group_nopermission', NULL, 'NOPERM');
}
include_once DISCUZ_ROOT.'./forumdata/cache/cache_usergroups.php';
$discuz_action = 62;
$query = $db->query("SELECT m.uid, mf.customstatus, m.username, m.groupid, mf.taobao, mf.alipay, mf.avatar, mf.avatarwidth, mf.avatarheight, mf.buyercredit, mf.sellercredit, m.regdate FROM {$tablepre}members m LEFT JOIN {$tablepre}memberfields mf USING(uid) WHERE m.uid='$uid'");
if(!$member = $db->fetch_array($query)) {
showmessage('member_nonexistence', NULL, 'NOPERM');
}
if($_DCACHE['usergroups'][$member['groupid']]['groupavatar']) {
$member['avatar'] = '<img src="'.$_DCACHE['usergroups'][$member['groupid']]['groupavatar'].'" border="0" alt="" />';
} elseif($_DCACHE['usergroups'][$member['groupid']]['allowavatar'] && $member['avatar']) {
$member['avatar'] = '<div class="avatar" style="width: '.$member['avatarwidth'].'"><img src="'.$member['avatar'].'" width="'.$member['avatarwidth'].'" height="'.$member['avatarheight'].'" border="0" alt="" /></div>';
} else {
$member['avatar'] = '';
}
$member['taobaoas'] = addslashes($member['taobao']);
$member['regdate'] = gmdate($dateformat, $member['regdate'] + $timeoffset * 3600);
$member['usernameenc'] = rawurlencode($member['username']);
$member['buyerrank'] = 0;
if($member['buyercredit']){
foreach($ec_credit['rank'] AS $level => $credit) {
if($member['buyercredit'] <= $credit) {
$member['buyerrank'] = $level;
break;
}
}
}
$member['sellerrank'] = 0;
if($member['sellercredit']){
foreach($ec_credit['rank'] AS $level => $credit) {
if($member['sellercredit'] <= $credit) {
$member['sellerrank'] = $level;
break;
}
}
}
$query = $db->query("SELECT variable, value, expiration FROM {$tablepre}spacecaches WHERE uid='$uid' AND variable IN ('buyercredit', 'sellercredit')");
$caches = array();
while($cache = $db->fetch_array($query)) {
$caches[$cache['variable']] = unserialize($cache['value']);
$caches[$cache['variable']]['expiration'] = $cache['expiration'];
}
foreach(array('buyercredit', 'sellercredit') AS $type) {
if(!isset($caches[$type]) || $timestamp > $caches[$type]['expiration']) {
$caches[$type] = updatecreditcache($uid, $type, 1);
}
}
@$buyerpercent = sprintf('%0.2f', $caches['buyercredit']['all']['good'] * 100 / $caches['buyercredit']['all']['total']);
@$sellerpercent = sprintf('%0.2f', $caches['sellercredit']['all']['good'] * 100 / $caches['sellercredit']['all']['total']);
include template('ec_credit');
} elseif($action == 'list') {
$from = in_array($from, array('buyer', 'seller', 'myself')) ? $from : '';
$sql = $from == 'myself' ? "raterid='$uid'" : "rateeid='$uid'";
$sql .= $from == 'buyer' ? ' AND type=0' : ($from == 'seller' ? ' AND type=1' : '');
switch($filter) {
case 'thisweek':
$sql .= " AND dateline>=$timestamp - 604800";
break;
case 'thismonth':
$sql .= " AND dateline>=$timestamp - 2592000";
break;
case 'halfyear':
$sql .= " AND dateline>=$timestamp - 15552000";
break;
case 'before':
$sql .= " AND dateline<$timestamp - 15552000";
}
switch($level) {
case 'good':
$sql .= ' AND score=1';
break;
case 'soso':
$sql .= ' AND score=0';
break;
case 'bad':
$sql .= ' AND score=-1';
}
$page = max(1, intval($page));
$start_limit = ($page - 1) * 10;
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}tradecomments WHERE $sql");
$num = $db->result($query, 0);
$multipage = multi($num, 10, $page, "eccredit.php?action=list&uid=$uid".($from ? "&from=$from" : NULL).($filter ? "&filter=$filter" : NULL).($level ? "&level=$level" : NULL));
$comments = array();
$query = $db->query("SELECT tc.*, tl.subject, tl.baseprice FROM {$tablepre}tradecomments tc LEFT JOIN {$tablepre}tradelog tl ON tl.orderid=tc.orderid WHERE $sql ORDER BY dateline DESC LIMIT $start_limit, 10");
while($comment = $db->fetch_array($query)) {
$comment['expiration'] = gmdate("$dateformat $timeformat", $comment['dateline'] + $timeoffset * 3600 + 30 * 86400);
$comment['dbdateline'] = $comment['dateline'];
$comment['dateline'] = gmdate("$dateformat $timeformat", $comment['dateline'] + $timeoffset * 3600);
$comment['baseprice'] = sprintf('%0.2f', $comment['baseprice']);
$comments[] = $comment;
}
include template('ec_list');
} elseif($action == 'rate' && $orderid && isset($type)) {
require_once DISCUZ_ROOT.'./api/alipayapi.php';
$type = intval($type);
if(!$type) {
$raterid = 'buyerid';
$ratee = 'seller';
$rateeid = 'sellerid';
} else {
$raterid = 'sellerid';
$ratee = 'buyer';
$rateeid = 'buyerid';
}
$query = $db->query("SELECT * FROM {$tablepre}tradelog WHERE orderid='$orderid' AND $raterid='$discuz_uid'");
if(!$order = $db->fetch_array($query)) {
showmessage('eccredit_order_notfound');
} elseif($order['ratestatus'] == 3 || ($type == 0 && $order['ratestatus'] == 1) || ($type == 1 && $order['ratestatus'] == 2)) {
showmessage('eccredit_rate_repeat');
} elseif(!trade_typestatus('successtrades', $order['status']) && !trade_typestatus('refundsuccess', $order['status'])) {
showmessage('eccredit_nofound');
}
$uid = $discuz_uid == $order['buyerid'] ? $order['sellerid'] : $order['buyerid'];
if(!submitcheck('ratesubmit')) {
include template('ec_rate');
} else {
$score = intval($score);
$message = cutstr(dhtmlspecialchars($message), 200);
$level = $score == 1 ? 'good' : ($score == 0 ? 'soso' : 'bad');
$pid = intval($order['pid']);
$db->query("INSERT INTO {$tablepre}tradecomments (pid, orderid, type, raterid, rater, ratee, rateeid, score, message, dateline) VALUES ('$pid', '$orderid', '$type', '$discuz_uid', '$discuz_user', '$order[$ratee]', '$order[$rateeid]', '$score', '$message', '$timestamp')");
if(!$order['offline']) {
$query = $db->query("SELECT COUNT(score) FROM {$tablepre}tradecomments WHERE raterid='$discuz_uid' AND type='$type'");
if($db->result($query, 0) < $ec_credit['maxcreditspermonth']) {
updateusercredit($uid, $type ? 'sellercredit' : 'buyercredit', $level);
}
}
if($type == 0) {
$ratestatus = $order['ratestatus'] == 2 ? 3 : 1;
} else {
$ratestatus = $order['ratestatus'] == 1 ? 3 : 2;
}
$db->query("UPDATE {$tablepre}tradelog SET ratestatus='$ratestatus' WHERE orderid='$order[orderid]'");
if($ratestatus != 3) {
sendpm($order[$rateeid], 'eccredit_subject', 'eccredit_message', '0', 'System Message');
}
showmessage('eccredit_succees');
}
} elseif($action == 'explain' && $id) {
if(!submitcheck('explainsubmit', 1)) {
include template('ec_explain');
} else {
$query = $db->query("SELECT explanation, dateline FROM {$tablepre}tradecomments WHERE id='".intval($id)."' AND rateeid='$discuz_uid'");
if(!$comment = $db->fetch_array($query)) {
showmessage('eccredit_nofound');
} elseif($comment['explanation']) {
showmessage('eccredit_reexplanation_repeat');
} elseif($comment['dateline'] < $timestamp - 30 * 86400) {
showmessage('eccredit_reexplanation_closed');
}
$explanation = cutstr(dhtmlspecialchars($explanation), 200);
$db->query("UPDATE {$tablepre}tradecomments SET explanation='$explanation' WHERE id='$id'");
include_once language('misc');
showmessage("<script type=\"text/javascript\">\$('ecce_$id').innerHTML = '<font class=\"lighttxt\">$language[eccredit_explain]: ".addslashes($explanation)."</font>';hideMenu();</script>");
}
}
?> | zyyhong | trunk/jiaju001/bbs/eccredit.php | PHP | asf20 | 8,039 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: admincp.php 10318 2007-08-25 12:26:40Z heyond $
*/
define('IN_ADMINCP', TRUE);
define('NOROBOT', TRUE);
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./admin/global.func.php';
require_once DISCUZ_ROOT.'./include/cache.func.php';
$discuz_action = 211;
include language('admincp');
if($adminid <= 0) {
$cpaccess = 0;
} else {
if(!$discuz_secques && $admincp['forcesecques']) {
cpheader();
cpmsg('secques_invalid');
}
if($adminipaccess && $adminid == 1 && !ipaccess($onlineip, $adminipaccess)) {
$cpaccess = 2;
} else {
$addonlineip = $admincp['checkip'] ? "AND ip='$onlineip'" : '';
$query = $db->query("SELECT errorcount FROM {$tablepre}adminsessions WHERE uid='$discuz_uid' $addonlineip AND dateline+1800>'$timestamp'", 'SILENT');
if($db->error()) {
$db->query("DROP TABLE IF EXISTS {$tablepre}adminsessions");
$db->query("CREATE TABLE {$tablepre}adminsessions (uid mediumint(8) UNSIGNED NOT NULL default '0', ip char(15) NOT NULL default '', dateline int(10) unsigned NOT NULL default '0', errorcount tinyint(1) NOT NULL default '0')");
$cpaccess = 1;
} else {
if($session = $db->fetch_array($query)) {
if($session['errorcount'] == -1) {
$db->query("UPDATE {$tablepre}adminsessions SET dateline='$timestamp' WHERE uid='$discuz_uid'", 'UNBUFFERED');
$cpaccess = 3;
} elseif($session['errorcount'] <= 3) {
$cpaccess = 1;
} else {
$cpaccess = 0;
}
} else {
$db->query("DELETE FROM {$tablepre}adminsessions WHERE uid='$discuz_uid' OR dateline+1800<'$timestamp'");
$db->query("INSERT INTO {$tablepre}adminsessions (uid, ip, dateline, errorcount)
VALUES ('$discuz_uid', '$onlineip', '$timestamp', '0')");
$cpaccess = 1;
}
}
}
}
$username = !empty($username) ? dhtmlspecialchars($username) : '';
$action = !empty($action) && is_string($action) ? trim($action) : '';
$page = isset($page) ? intval((max(1, $page))) : 0;
if(!empty($action) && !in_array($action, array('main', 'header', 'menu', 'illegallog', 'ratelog', 'modslog', 'medalslog', 'creditslog', 'banlog', 'cplog', 'errorlog'))) {
switch($cpaccess) {
case 0:
$extra = 'PERMISSION DENIED';
break;
case 1:
$extra = 'AUTHENTIFICATION(ERROR #'.intval($session['errorcount']).')';
break;
case 2:
$extra = 'IP ACCESS DENIED';
break;
case 3:
$extra = $semicolon = '';
if(is_array($_GET)) {
foreach(array_merge($_GET, $_POST) as $key => $val) {
if(!in_array($key, array('action', 'sid', 'formhash', 'admin_password')) && $val) {
$extra .= $semicolon.$key.'=';
if(is_array($val)) {
$extra .= 'Array(';
foreach($val as $arraykey => $arrayval) {
$extra .= $arraykey.'='.cutstr($arrayval, 15).'; ';
}
$extra .= ')';
} else {
$extra .= cutstr($val, 15);
}
$semicolon = '; ';
}
}
$extra = nl2br(dhtmlspecialchars($extra));
}
break;
}
$extralog = (($action == 'home' && isset($securyservice)) || ($action == 'insenz' && in_array($operation, array('register', 'binding')))) ? '' : $extra;
writelog('cplog', dhtmlspecialchars("$timestamp\t$discuz_userss\t$adminid\t$onlineip\t$action\t$extralog"));
unset($extralog);
}
if($cpaccess == 0) {
clearcookies();
loginmsg('noaccess');
} elseif($cpaccess == 1) {
if(!$admin_password || md5($admin_password) != $discuz_pw) {
if($admin_password) {
$db->query("UPDATE {$tablepre}adminsessions SET errorcount=errorcount+1 WHERE uid='$discuz_uid'");
writelog('cplog', dhtmlspecialchars("$timestamp\t$discuz_userss\t$adminid\t$onlineip\t$action\tAUTHENTIFICATION(PASSWORD)"));
}
loginmsg('', '', 'login');
} else {
$db->query("UPDATE {$tablepre}adminsessions SET errorcount='-1' WHERE uid='$discuz_uid'");
loginmsg('login_succeed', 'admincp.php?'.$_SERVER['QUERY_STRING'].'');
if(!empty($url_forward)) {
echo "<meta http-equiv=refresh content=\"0;URL=$url_forward\">";exit;
}
}
} elseif($cpaccess == 2) {
loginmsg('noaccess_ip');
}
if(empty($action) || isset($frames)) {
parse_str($_SERVER['QUERY_STRING'], $getarray);
$extra = $and = '';
foreach($getarray as $key => $value) {
if($key == 'action' && in_array($value, array('header', 'menu'))) {
$extra .= $and.$key.'=home';
} elseif(!in_array($key, array('sid', 'frames'))) {
@$extra .= $and.$key.'='.rawurlencode($value);
$and = '&';
}
}
$extra = $extra && $action ? $extra : (!empty($runwizard) ? 'action=runwizard' : 'action=home');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<title>Discuz! Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<script src="include/javascript/common.js" type="text/javascript"></script>
<script src="include/javascript/iframe.js" type="text/javascript"></script>
</head>
<body style="margin: 0px" scroll="no">
<div style="position: absolute;top: 0px;left: 0px; z-index: 2;height: 65px;width: 100%">
<iframe frameborder="0" id="header" name="header" src="admincp.php?action=header&sid=<?=$sid?>" scrolling="no" style="height: 65px; visibility: inherit; width: 100%; z-index: 1;"></iframe>
</div>
<table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%" style="table-layout: fixed;">
<tr><td width="165" height="65"></td><td></td></tr>
<tr>
<td><iframe frameborder="0" id="menu" name="menu" src="admincp.php?action=menu&sid=<?=$sid?>" scrolling="yes" style="height: 100%; visibility: inherit; width: 100%; z-index: 1;overflow: auto;"></iframe></td>
<td><iframe frameborder="0" id="main" name="main" src="admincp.php?<?=$extra?>&sid=<?=$sid?>" scrolling="yes" style="height: 100%; visibility: inherit; width: 100%; z-index: 1;overflow: auto;"></iframe></td>
</tr></table>
</body>
</html>
<?
exit();
}
$isfounder = isfounder();
if($action == 'menu') {
require_once DISCUZ_ROOT.'./admin/menu.inc.php';
} elseif($action == 'header') {
require_once DISCUZ_ROOT.'./admin/header.inc.php';
} elseif($action == 'logout') {
$db->query("DELETE FROM {$tablepre}adminsessions WHERE uid='$discuz_uid'");
loginmsg('logout_succeed', 'index.php');
} else {
$cpscript = '';
if($adminid == 1) {
if($action == 'home') {
$cpscript = 'home';
} elseif($action == 'runwizard' && isfounder()) {
$cpscript = 'runwizard';
} elseif($action == 'settings') {
$cpscript = 'settings';
} elseif($action == 'xspace') {
$cpscript = 'supesite';
} elseif($action == 'passport' || $action == 'shopex') {
$cpscript = 'passport';
} elseif($action == 'google_config') {
$cpscript = 'google';
} elseif($action == 'qihoo_config' || $action == 'qihoo_relatedthreads' || $action == 'qihoo_topics') {
$cpscript = 'qihoo';
} elseif($action == 'forumadd' || $action == 'forumsedit' || $action == 'forumsmerge' || $action == 'forumdetail' || $action == 'forumdelete' || $action == 'moderators' || $action == 'forumcopy' || $action == 'forumrecommend') {
$cpscript = 'forums';
} elseif($action == 'editmember' || $action == 'memberadd' || $action == 'members' || $action == 'membersmerge' || $action == 'editgroups' || $action == 'access' || $action == 'editcredits' || $action == 'editmedals' || $action == 'memberprofile' || $action == 'profilefields' || $action == 'ipban' || $action == 'banmember') {
$cpscript = 'members';
} elseif($action == 'usergroups' || $action == 'admingroups' || $action == 'ranks') {
$cpscript = 'groups';
} elseif($action == 'announcements') {
$cpscript = 'announcements';
} elseif($action == 'styles') {
$cpscript = 'styles';
} elseif($isfounder && ($action == 'templates' || $action == 'tpladd' || $action == 'tpledit' || $action == 'tplcopy')) {
$cpscript = 'templates';
} elseif($action == 'modmembers' || $action == 'modthreads' || $action == 'modreplies') {
$cpscript = 'moderate';
} elseif($action == 'recyclebin') {
$cpscript = 'recyclebin';
} elseif($action == 'alipay' || $action == 'orders' || $action == 'ec_credit') {
$cpscript = 'ecommerce';
} elseif($action == 'smilies') {
$cpscript = 'smilies';
} elseif($action == 'forumlinks' || $action == 'onlinelist' || $action == 'medals' || $action == 'censor' || $action == 'discuzcodes' || $action == 'icons' || $action == 'attachtypes' || $action == 'crons' || $action == 'creditslog' || $action == 'tags') {
$cpscript = 'misc';
} elseif($action == 'adv' || $action == 'advadd' || $action == 'advedit') {
$cpscript = 'advertisements';
} elseif($isfounder && ($action == 'export' || $action == 'optimize' || ($action == 'import' || $action == 'importzip' || $action == 'runquery'))) {
$cpscript = 'database';
} elseif($action == 'attachments') {
$cpscript = 'attachments';
} elseif($action == 'counter') {
$cpscript = 'counter';
} elseif($action == 'threads') {
$cpscript = 'threads';
} elseif($action == 'insenz') {
$cpscript = 'insenz';
} elseif($action == 'prune' || $action == 'pmprune') {
$cpscript = 'prune';
} elseif($action == 'updatecache' || $action == 'jswizard' || $action == 'fileperms') {
$cpscript = 'tools';
} elseif($action == 'filecheck' || $action == 'dbcheck' || $action == 'ftpcheck' || $action == 'mailcheck' || $action == 'imagepreview') {
$cpscript = 'checktools';
} elseif($action == 'creditwizard') {
$cpscript = 'creditwizard';
} elseif($action == 'plugins' || $action == 'pluginsconfig' || $action == 'pluginsedit' || $action == 'pluginhooks' || $action == 'pluginvars') {
$cpscript = 'plugins';
} elseif($action == 'illegallog' || $action == 'ratelog' || $action == 'modslog' || $action == 'medalslog' || $action == 'banlog' || $action == 'cplog' || $action == 'errorlog' || $action == 'invitelog') {
$cpscript = 'logs';
} elseif($action == 'tradelog') {
$cpscript = 'tradelog';
} elseif($action == 'faqlist' || $action == 'faqdetail') {
$cpscript = 'faq';
} elseif($action == 'magic_config' || $action == 'magic' || $action == 'magicadd' || $action == 'magicedit' || $action == 'magicmarket' || $action == 'magiclog') {
$cpscript = 'magics';
} elseif($action == 'upgrade' || $action == 'upgradedown' || $action == 'upgradeopenbbs') {
$cpscript = 'upgrade';
} elseif($action == 'project' || $action == 'projectadd' || $action == 'projectapply') {
$cpscript = 'project';
} elseif($action == 'threadtypes' || $action == 'typeoption' || $action == 'typedetail' || $action == 'optiondetail' || $action == 'typemodel' || $action == 'modeldetail') {
$cpscript = 'threadtypes';
} elseif($action == 'videoconfig' || $action == 'video' || $action == 'videobind' || $action == 'videoclass') {
$cpscript = 'video';
}
if($radminid != $groupid) {
$query = $db->query("SELECT disabledactions FROM {$tablepre}adminactions WHERE admingid='$groupid'");
$dactionarray = ($dactionarray = unserialize($db->result($query, 0))) ? $dactionarray : array();
if(in_array($action, $dactionarray)) {
cpheader();
cpmsg('action_noaccess');
}
}
} elseif($adminid == 2 || $adminid == 3) {
if($action == 'home') {
$cpscript = 'home';
} elseif((($allowedituser || $allowbanuser) && ($action == 'editmember' || $action == 'banmember')) || ($allowbanip && $action == 'ipban')) {
$cpscript = 'members';
} elseif($action == 'forumrules' || $action == 'forumrecommend') {
$cpscript = 'forums';
} elseif($allowpostannounce && $action == 'announcements') {
$cpscript = 'announcements';
} elseif(($allowmoduser && $action == 'modmembers') || ($allowmodpost && ($action == 'modthreads' || $action == 'modreplies'))) {
$cpscript = 'moderate';
} elseif(($allowcensorword && $action == 'censor') || $action == 'logout') {
$cpscript = 'misc';
} elseif($allowmassprune && $action == 'prune') {
$cpscript = 'prune';
} elseif($action == 'plugins') {
$cpscript = 'plugins';
} elseif($allowviewlog && ($action == 'ratelog' || $action == 'modslog' || $action == 'banlog')) {
$cpscript = 'logs';
}
}
if($cpscript) {
require_once DISCUZ_ROOT.'./admin/'.$cpscript.'.inc.php';
} else {
cpheader();
cpmsg('noaccess');
}
if($action != 'menu' && $action != 'header') {
cpfooter();
}
}
output();
function loginmsg($message, $url_forward = '', $msgtype = 'message') {
extract($GLOBALS, EXTR_SKIP);
$action = dhtmlspecialchars($action);
$message = isset($msglang[$message]) ? $msglang[$message] : $message;
if($msgtype == 'message') {
$message = '<tr><td> </td><td align="center" colspan="3" >'.$message;
if($url_forward) {
$message .= "<br /><br /><a href=\"$url_forward\">$lang[message_redirect]</a>";
$url_forward = transsid($url_forward);
$message .= "<script>setTimeout(\"redirect('$url_forward');\", 1250);</script><br /><br /><br /></td><td> </td></tr>";
} else {
$message .= '<br /><br /><br />';
}
} else {
$extra = isset($action) && empty($frames) && $action != 'logout' ? '?frames=yes&'.$_SERVER['QUERY_STRING'] : (in_array($action, array('header', 'menu', 'logout')) ? '' : '?'.$_SERVER['QUERY_STRING']);
$message = '<form method="post" name="login" action="admincp.php'.$extra.'">'.
'<input type="hidden" name="sid" value="'.$sid.'">'.
'<input type="hidden" name="frames" value="yes>'.
'<input type="hidden" name="url_forward" value="'.$url_forward.'">'.
'<tr><td> </td><td align="right">'.$lang['username'].':</td>'.
'<td>'.$discuz_user.'</td><td><a href="'.$link_logout.'&referer='.$indexname.'" target="_blank">'.$lang['menu_logout'].'</a></td>'.
'<td> </td></tr>'.
'<tr><td> </td><td align="right">'.$lang['password'].':</td><td><input type="password" name="admin_password" size="25"></td>'.
'<td> </td><td> </td></tr>'.
'<tr><td> </td><td class="line1"> </td>'.
'<td class="line1" align="center"><input type="submit" class="button" value="'.$lang['submit'].'" /></form><script language="JavaScript">document.login.admin_password.focus();</script></td>'.
'<td class="line1"> </td><td> </td></tr>';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Discuz! Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<link href="./images/admincp/login.css" rel="stylesheet" type="text/css" />
</head>
<script language="JavaScript">
if(self.parent.frames.length != 0) {
self.parent.location=document.location;
}
function redirect(url) {
window.location.replace(url);
}
</script>
<br /><br /><br /><br />
<table width="600" border="0" cellpadding="8" cellspacing="0" class="logintable">
<tr class="loginheader"><td width="80"></td><td width="100"></td><td></td><td width="120"></td><td width="80"></td></tr>
<tr style="height:40px"><td> </td>
<td class="line1"><span style="color:#ffff66;font-size:14px;font-weight: bold;"><?=$lang['admin_page']?></span></td>
<td class="line1"> </td>
<td class="line1"> </td>
<td> </td></tr>
<tr><td> </td><td class="line2"> </td><td class="line2"> </td><td class="line2"> </td><td> </td></tr>
<?=$message?>
<tr><td> </td><td class="line2"> </td><td class="line2"> </td><td class="line2"> </td><td> </td></tr>
<tr><td colspan="5" align="center">Powered by <a href="http://www.discuz.net" target="_blank" style="color: #fff"><b>Discuz!</b></a>
© 2001-2007 <a href="http://www.comsenz.com" target="_blank" style="color: #fff">Comsenz Inc.</a></td></tr>
<tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>
</html>
<?
dexit();
}
?> | zyyhong | trunk/jiaju001/bbs/admincp.php | PHP | asf20 | 16,192 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: logging.php 10115 2007-08-24 00:58:08Z cnteacher $
*/
define('NOROBOT', TRUE);
define('CURSCRIPT', 'logging');
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/misc.func.php';
if($action == 'logout' && !empty($formhash)) {
if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') {
$extrahead .= '<script>if(top != self) {parent.leftmenu.location.reload();}</script>';
}
if($formhash != FORMHASH) {
showmessage('logout_succeed', dreferer());
}
clearcookies();
$groupid = 7;
$discuz_uid = 0;
$discuz_user = $discuz_pw = '';
$styleid = $_DCACHE['settings']['styleid'];
if($passport_status == 'shopex' && $passport_shopex && $_DSESSION['adminid'] != 1) {
$dreferer = dreferer();
$verify = md5('logout'.$dreferer.$passport_key);
showmessage('logout_succeed', 'api/relateshopex.php?action=logout&forward='.rawurlencode($dreferer).'&verify='.$verify);
} else {
showmessage('logout_succeed', dreferer());
}
} elseif($action == 'login') {
if($discuz_uid) {
showmessage('login_succeed', $indexname);
}
$field = $loginfield == 'uid' ? 'uid' : 'username';
//get secure code checking status (pos. -2)
$seccodecheck = substr(sprintf('%05b', $seccodestatus), -2, 1);
if($seccodecheck && $seccodedata['loginfailedcount']) {
$seccodecheck = $db->result($db->query("SELECT count(*) FROM {$tablepre}failedlogins WHERE ip='$onlineip' AND count>='$seccodedata[loginfailedcount]' AND $timestamp-lastupdate<=900"), 0);
}
$seccodemiss = !empty($loginsubmit) && $seccodecheck && !$seccodeverify ? TRUE : FALSE;
if(!submitcheck('loginsubmit', 1, $seccodemiss ? FALSE : $seccodecheck)) {
$discuz_action = 6;
$referer = dreferer();
$thetimenow = '(GMT '.($timeoffset > 0 ? '+' : '').$timeoffset.') '.
gmdate("$dateformat $timeformat", $timestamp + $timeoffset * 3600).
$styleselect = '';
$query = $db->query("SELECT styleid, name FROM {$tablepre}styles WHERE available='1'");
while($styleinfo = $db->fetch_array($query)) {
$styleselect .= "<option value=\"$styleinfo[styleid]\">$styleinfo[name]</option>\n";
}
$_DCOOKIE['cookietime'] = isset($_DCOOKIE['cookietime']) ? $_DCOOKIE['cookietime'] : 2592000;
$cookietimecheck = array((isset($_DCOOKIE['cookietime']) ? intval($_DCOOKIE['cookietime']) : 2592000) => 'checked="checked"');
if($seccodecheck) {
$seccode = random(6, 1) + $seccode{0} * 1000000;
}
include template('login');
} else {
if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') {
$extrahead .= '<script>if(top != self) {parent.leftmenu.location.reload();}</script>';
}
$discuz_uid = 0;
$discuz_user = $discuz_pw = $discuz_secques = $md5_password = '';
$member = array();
$loginperm = logincheck();
if(!$loginperm) {
showmessage('login_strike');
}
$secques = quescrypt($questionid, $answer);
if(isset($loginauth)) {
$field = 'username';
$password = 'VERIFIED';
list($username, $md5_password) = daddslashes(explode("\t", authcode($loginauth, 'DECODE')), 1);
} else {
$md5_password = md5($password);
$password = preg_replace("/^(.{".round(strlen($password) / 4)."})(.+?)(.{".round(strlen($password) / 6)."})$/s", "\\1***\\3", $password);
}
$query = $db->query("SELECT m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.secques AS discuz_secques,
m.adminid, m.groupid, m.styleid AS styleidmem, m.lastvisit, m.lastpost, u.allowinvisible
FROM {$tablepre}members m LEFT JOIN {$tablepre}usergroups u USING (groupid)
WHERE m.$field='$username'");
$member = $db->fetch_array($query);
if($member['discuz_uid'] && $member['discuz_pw'] == $md5_password) {
if($member['discuz_secques'] == $secques && !$seccodemiss) {
extract($member);
$discuz_userss = $discuz_user;
$discuz_user = addslashes($discuz_user);
if(($allowinvisible && $loginmode == 'invisible') || $loginmode == 'normal') {
$db->query("UPDATE {$tablepre}members SET invisible='".($loginmode == 'invisible' ? 1 : 0)."' WHERE uid='$member[discuz_uid]'", 'UNBUFFERED');
}
$styleid = intval(empty($_POST['styleid']) ? ($styleidmem ? $styleidmem :
$_DCACHE['settings']['styleid']) : $_POST['styleid']);
$cookietime = intval(isset($_POST['cookietime']) ? $_POST['cookietime'] :
($_DCOOKIE['cookietime'] ? $_DCOOKIE['cookietime'] : 0));
dsetcookie('cookietime', $cookietime, 31536000);
dsetcookie('auth', authcode("$discuz_pw\t$discuz_secques\t$discuz_uid", 'ENCODE'), $cookietime);
$sessionexists = 0;
if($passport_status == 'shopex' && $passport_shopex) {
if($groupid == 8) {
$verify = md5('loginmemcp.php'.$passport_key);
showmessage('login_succeed_inactive_member', 'api/relateshopex.php?action=login&forward=memcp.php&verify='.$verify);
} else {
$dreferer = dreferer();
$verify = md5('login'.$dreferer.$passport_key);
showmessage('login_succeed', 'api/relateshopex.php?action=login&forward='.rawurlencode($dreferer).'&verify='.$verify);
}
} else {
if($groupid == 8) {
showmessage('login_succeed_inactive_member', 'memcp.php');
} else {
showmessage('login_succeed', dreferer());
}
}
} elseif(empty($secques) || $seccodemiss) {
$username = dhtmlspecialchars($member['discuz_user']);
$loginmode = dhtmlspecialchars($loginmode);
$styleid = intval($styleid);
$cookietime = intval($cookietime);
$loginauth = authcode($member['discuz_user']."\t".$member['discuz_pw'], 'ENCODE');
include template('login_secques');
dexit();
}
}
$errorlog = dhtmlspecialchars(
$timestamp."\t".
($member['discuz_user'] ? $member['discuz_user'] : stripslashes($username))."\t".
($password)."\t".
($secques ? "Ques #".intval($questionid) : '')."\t".
$onlineip);
writelog('illegallog', $errorlog);
loginfailed($loginperm);
showmessage('login_invalid', 'logging.php?action=login', 'HALTED');
}
} else {
showmessage('undefined_action');
}
?> | zyyhong | trunk/jiaju001/bbs/logging.php | PHP | asf20 | 6,308 |
<?php
/*
[Discuz!] (C)2001-2007 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: rss.php 10257 2007-08-25 03:44:26Z cnteacher $
*/
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(0);
define('IN_DISCUZ', TRUE);
define('DISCUZ_ROOT', '');
$timestamp = time();
$fidarray = array();
if(PHP_VERSION < '4.1.0') {
$_GET = &$HTTP_GET_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
}
require_once DISCUZ_ROOT.'./config.inc.php';
require_once DISCUZ_ROOT.'./include/global.func.php';
require_once DISCUZ_ROOT.'./include/db_'.$database.'.class.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_settings.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
require_once DISCUZ_ROOT.'./forumdata/cache/style_'.intval($_DCACHE['settings']['styleid']).'.php';
if(!$_DCACHE['settings']['rssstatus']) {
exit('RSS Disabled');
}
$ttl = $_DCACHE['settings']['rssttl'] ? $_DCACHE['settings']['rssttl']: 30;
$num = 20;
$db = new dbstuff;
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
unset($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
$groupid = 7;
$discuz_uid = 0;
$discuz_user = $discuz_pw = $discuz_secques = '';
if(!empty($_GET['auth'])) {
list($uid, $fid, $auth) = explode("\t", authcode($_GET['auth'], 'DECODE', md5($_DCACHE['settings']['authkey'])));
$query = $db->query("SELECT uid AS discuz_uid, username AS discuz_user, password AS discuz_pw, secques AS discuz_secques, groupid
FROM {$tablepre}members WHERE uid='".intval($uid)."'");
if($member = $db->fetch_array($query)) {
if($auth == substr(md5($member['discuz_pw'].$member['discuz_secques']), 0, 8)) {
extract($member);
}
}
}
$PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$boardurl = 'http://'.$_SERVER['HTTP_HOST'].substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
$bbname = dhtmlspecialchars(strip_tags($_DCACHE['settings']['bbname']));
$rssfid = empty($_GET['fid']) ? 0 : intval($_GET['fid']);
$forumname = '';
if(empty($rssfid)) {
foreach($_DCACHE['forums'] as $fid => $forum) {
if(rssforumperm($forum)) {
$fidarray[] = $fid;
}
}
} else {
$forum = isset($_DCACHE['forums'][$rssfid]) && $_DCACHE['forums'][$rssfid]['type'] != 'group' ? $_DCACHE['forums'][$rssfid] : array();
if($forum && rssforumperm($forum)) {
$fidarray = array($rssfid);
$forumname = dhtmlspecialchars($_DCACHE['forums'][$rssfid]['name']);
} else {
exit('Specified forum not found');
}
}
dheader("Content-type: application/xml");
echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?>\n".
"<rss version=\"2.0\">\n".
" <channel>\n".
(count($fidarray) > 1 ?
" <title>$bbname</title>\n".
" <link>{$boardurl}".$_DCACHE[settings][indexname]."</link>\n".
" <description>Latest $num threads of all forums</description>\n"
:
" <title>$bbname - $forumname</title>\n".
" <link>{$boardurl}forumdisplay.php?fid=$rssfid</link>\n".
" <description>Latest $num threads of $forumname</description>\n"
).
" <copyright>Copyright(C) $bbname</copyright>\n".
" <generator>Discuz! Board by Comsenz Inc.</generator>\n".
" <lastBuildDate>".gmdate('r', $timestamp)."</lastBuildDate>\n".
" <ttl>$ttl</ttl>\n".
" <image>\n".
" <url>{$boardurl}images/logo.gif</url>\n".
" <title>$bbname</title>\n".
" <link>{$boardurl}</link>\n".
" </image>\n";
if($fidarray) {
$query = $db->query("SELECT * FROM {$tablepre}rsscaches WHERE fid IN (".implode(',', $fidarray).") ORDER BY dateline DESC LIMIT $num");
if($db->num_rows($query)) {
while($thread = $db->fetch_array($query)) {
if($timestamp - $thread['lastupdate'] > $ttl * 60) {
updatersscache();
break;
} else {
echo " <item>\n".
" <title>".dhtmlspecialchars($thread['subject'])."</title>\n".
" <link>{$boardurl}viewthread.php?tid=$thread[tid]</link>\n".
" <description><![CDATA[$thread[description]]]></description>\n".
" <category>".dhtmlspecialchars($thread['forum'])."</category>\n".
" <author>".dhtmlspecialchars($thread['author'])."</author>\n".
" <pubDate>".gmdate('r', $thread['dateline'])."</pubDate>\n".
" </item>\n";
}
}
} else {
updatersscache();
}
}
echo " </channel>\n".
"</rss>";
function rssforumperm($forum) {
global $groupid, $discuz_uid;
return $forum['type'] != 'group' && (!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])) || $accessmasks);
}
function updatersscache() {
global $_DCACHE, $timestamp, $num, $tablepre, $db;
$db->query("DELETE FROM {$tablepre}rsscaches");
foreach($_DCACHE['forums'] as $fid => $forum) {
if($forum['type'] != 'group') {
$query = $db->query("SELECT t.tid, t.readperm, t.price, t.author, t.dateline, t.subject, p.message
FROM {$tablepre}threads t
LEFT JOIN {$tablepre}posts p ON p.tid=t.tid AND p.first='1'
WHERE t.fid='$fid' AND t.displayorder>='0'
ORDER BY t.dateline DESC LIMIT $num");
while($thread = $db->fetch_array($query)) {
$forum['name'] = addslashes($forum['name']);
$thread['author'] = $thread['author'] != '' ? addslashes($thread['author']) : 'Anonymous';
$thread['subject'] = addslashes($thread['subject']);
$thread['description'] = $thread['readperm'] > 0 || $thread['price'] > 0 ? '' : addslashes(cutstr(dhtmlspecialchars(preg_replace("/(\[.+\])/s", '', strip_tags(nl2br($thread['message'])))), 255));
$db->query("INSERT INTO {$tablepre}rsscaches (lastupdate, fid, tid, dateline, forum, author, subject, description)
VALUES ('$timestamp', '$fid', '$thread[tid]', '$thread[dateline]', '$forum[name]', '$thread[author]', '$thread[subject]', '$thread[description]')");
}
}
}
}
?> | zyyhong | trunk/jiaju001/bbs/rss.php | PHP | asf20 | 5,869 |
<?php
require_once './include/config.inc.php';
require_once("./cache/list.php");$lists_db = unserialize(stripslashes($lists_db));
if($listename){
$attrd=$attrd?str_replace("\"",".",json_encode($attrd)):"";$shops=$shops?$shops:array();
$path="/list/".$listename."-1-".$attrd."-".implode(".",$shops).".html";
ObHeader($path);
}else{
if($key){
$queryall = $db->query("SELECT * FROM odiy_product where goodsname like '%$key%' and level=1");
$count = $db->num_rows($queryall);$db->free_result($queryall);
!$page && $page=1;
$page_set=$view?$view:30;$start_limit =($page-1)*$page_set;
$numofpage = $count%$page_set==0?$count/$page_set:floor($count/$page_set)+1;
//$strat $end
if($numofpage<11){$strat=1;$end=$numofpage+1;}else{
if($page<5){$strat=1;$end=$page+5;}elseif($page>4 && $page>$numofpage-4){$strat=$page-4;$end=$numofpage+1;}else{$strat=$page-4;$end=$page+4;}}
for($i=$strat;$i<$end;$i++){if($i == $page){
$pages .=" <span class='red'>[".$i."]</span> ";}else{
$pages .=" <a href='./search?key=".$key."&page=".$i."'>[".$i."]</a> ";}}
$list['pages'] = $pages; $list['count'] = $count; $list['page_set'] = $page_set; $list['page'] = $page; $list['numofpage'] = $numofpage;
$query = $db->query("select id,goodsname,mprice,sprice,cprice,stime,etime,img,unit from odiy_product where goodsname like '%$key%' and level=1 order by id desc LIMIT $start_limit,$page_set");
while($read=$db->fetch_array($query)){
$read['img'] = $read['img'] ? $read['img'] : "noimg.gif";
$read['goodsname'] = substrs($read['goodsname'],60);
$goods[] = $read;
}
unset($read);$db->free_result($query);
//print_r($goods);
}
}
$data['title'] = "站内搜索 - ".$cfg['sitename'];
include('core/site/search.php');
?>
| zyyhong | trunk/jiaju001/site/search.php | PHP | asf20 | 1,721 |
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body>
<?php
require_once './include/config.inc.php';
?><h3>活动自动报名程序</h3>
<form action="" method="post">
活动ID:<input name="cid" value="<?php echo $cid?>" /><br />
活动举行时间:<input name="etime" value="<?php echo $etime?>" /><br />
报名开始时间:<input name="stime" value="<?php echo $stime?>" /><br />
<input name="act" type="submit" value="create" />
</form>
1.活动时间的10天内开始报名<br />
2.报名频率9:00-18:00 2个/小时 18:00-21:00 1个/小时<br />
<script src="images/calendar.js"></script>
<?php
if($act=="create"){
(!$cid||!$etime||!$stime)&&exit("参数丢失。活动ID,开始报名时间,活动时间都必须填写");
$endtime = strtotime($etime);
$moba = array(130,131,132,133,135,136,138,139,153,155,158,159);
$randtime=strtotime($stime);
$sql = "insert into odiy_cai_lu (`caiid`,`userid`,`mob`,`co`,`ip`,`created`) values";
echo $etime,"|",$cid,"|",$stime;
echo "<textarea style='width:1100px;height:400px'>",$sql;
$i = 0;
for(;;){
$i++;
if($randtime>$endtime) break;
$h = date("H",$randtime);
if($h<9){
//获得今天的9点
$randtime=strtotime(date("Y-m-d",$randtime))+32400+rand(600,1200);
}elseif($h>7&&$h<16){
$randtime +=rand(6600,9300);
}elseif($h>15&&$h<20){
$randtime +=rand(6600,9300);
}else{
//获得明天的9点
$randtime=strtotime(date("Y-m-d",$randtime))+118800+rand(600,1200);
}
//echo date("Y-m-d H:i:s",$randtime)," => ",$moba[rand(0,11)].rand(11111111,99999999),"<br />";
echo "('$cid','0','".$moba[rand(0,11)].rand(11111111,99999999),"','0','0','".$randtime."'),";
}
echo "</textarea>";
echo $i-1;
}
?>
</body></html>
| zyyhong | trunk/jiaju001/site/bm.php | PHP | asf20 | 1,761 |
<?php if($data): ?>
<!--<style type="text/css">
.STYLE1 {color: #FF0000}
</style>-->
<div class="wrap">
<div class="col_l fl"><div id="lm_nav"></div>
<div class="guwen"><dl><dt><img src="/images/v2/liu.jpg" width="100" height="100" class="avt" /><strong>心心</strong> 选材顾问<br />
<IMG alt=qq hspace=3 src="images/v2/qq_ic.gif" border=0><A href="tencent://message/?uin=708802765&Site" target=blank>708802765</A><br />
<IMG alt=msn hspace=3 src="images/v2/msn_ic.gif" border=0><A href="msnim:add?contact=liulx@homebjjj.com" target=blank>MSN在线</A><br />
<a href="http://bbs.jiaju001.com/viewthread.php?tid=17627&extra=page%3D1"><img src="images/v2/talk.gif" /></a>
<div class="hack"></div></dt><dd>
熟悉家装建材行业,有丰富的家装建材经验。成功组织主持多场大型家装建材团购会。热心、负责,是网友选材砍价的得力帮手。</dd></dl>
<dl>
<dt><img src="/images/v2/lu.jpg" width="100" height="100" class="avt" />
<strong>军长</strong> 选材顾问<br />
<IMG alt=qq hspace=3 src="images/v2/qq_ic.gif" border=0><A href="tencent://message/?uin=158487713&Site" target=blank>158487713</A><br />
<IMG alt=msn hspace=3 src="images/v2/msn_ic.gif" border=0><A href="msnim:add?contact=lujf@homebjjj.com" target=blank>MSN在线</A><br />
<a href="http://bbs.jiaju001.com/viewthread.php?tid=17649&extra=page%3D1&frombbs=1"><img src="images/v2/talk.gif" border="0" /></a>
<div class="hack"></div>
</dt>
<dd>
有着丰富的家装建材经验,愿真心的为业主朋友们提供装修方面的帮助。</dd></dl>
<dl><dt><img src="/images/v2/gong.jpg" width="100" height="100" class="avt" /><strong>茉莉</strong> 选材顾问<br />
<IMG alt=qq hspace=3 src="images/v2/qq_ic.gif" border=0><A href="tencent://message/?uin=415466594&Site" target=blank>415466594</A><br />
<IMG alt=msn hspace=3 src="images/v2/msn_ic.gif" border=0><A href="msnim:add?contact=gongyz@homebjjj.com" target=blank>MSN在线</A><br />
<a href="http://bbs.jiaju001.com/viewthread.php?tid=17650&extra=page%3D1&frombbs=1"><img src="images/v2/talk.gif" border="0" /></a>
<div class="hack"></div>
</dt>
<dd>
在从事建材装修工作中积累了大量的实践经验和客户资源。有着丰富的装修建材经验,愿真心的为业主朋友们提供选材方面的咨询。</dd></dl>
<dl><dt><img src="/images/v2/bing.jpg" width="100" height="100" class="avt" /><strong>月亮</strong> 选材顾问<br />
<IMG alt=qq hspace=3 src="images/v2/qq_ic.gif" border=0><A href="tencent://message/?uin=411946139&Site" target=blank>411946139</A><br />
<IMG alt=msn hspace=3 src="images/v2/msn_ic.gif" border=0><A href="msnim:add?contact=bingyj@homebjjj.com" target=blank>MSN在线</A><br />
<a href="http://bbs.jiaju001.com/viewthread.php?tid=17651&extra=page%3D1&frombbs=1"><img src="images/v2/talk.gif" /></a>
<div class="hack"></div>
</dt>
<dd>了解家装建材方面的专业知识,拥有丰富的家装建材经验。愿竭诚为业主朋友提供家装选材方面的服务。</dd></dl>
</div>
<a style="cursor:pointer;" href="http://bbs.jiaju001.com/" target="_blank"><div id="lm_nav1"></div></a>
<div class="guwen bst">
<script language="JavaScript" src="http://bbs.jiaju001.com/api/javascript.php?key=threads_8rz"></script>
</div>
</div><div class="col_r fr">
<!-- 1 -->
<div class="topic"><div class="tp"><div class="tl"></div><div class="fl it1" style="color:#439DDB; font-weight:bold"><a href="http://www.jiaju001.com/list/cizhuan.html">瓷砖</a> | <a href="http://www.jiaju001.com/list/diban.html">地板</a> | <a href="http://www.jiaju001.com/list/youqi.html">油漆涂料</a> | <a href="http://www.jiaju001.com/list/beijingqiang.html">背景墙</a> | <a href="http://www.jiaju001.com/list/bizhi.html">壁纸窗帘</a></div>
<div class="tr"></div><div class="trr" style="background:#516B9E"><a href="<?php echo $titlebar['tblink11'];?>"><?php echo $titlebar['tbar11'];?></a> | <a href="<?php echo $titlebar['tblink12'];?>"><?php echo $titlebar['tbar12'];?></a> | <a href="<?php echo $titlebar['tblink13'];?>"><?php echo $titlebar['tbar13'];?></a> | <a href="<?php echo $titlebar['tblink14'];?>"><?php echo $titlebar['tbar14'];?></a>
<div></div></div></div>
<div class="tq">
<dl class="bl"><a href="<?php echo $spics['slink1'];?>"><img src="<?php echo $spics['spic1'];?>" width="173" height="245" border="0" alt=""/></a><div class="hack"></div></dl>
<dl class="bm">
<ul class="co">
<li><a href="<?php echo $smallpics['smalllink11'];?>"><img src="<?php echo $smallpics['smallpic11'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle11'];?>" /></a><br /><a href="<?php echo $smallpics['smalllink11'];?>"><?php echo $smallpics['smalltitle11'];?></a><br />市场价:<?php echo $smallpics['mprice11'];?>/<?php echo $smallpics['sunit11'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice11'];?></samp>/<?php echo $smallpics['sunit11'];?>
</li>
<li><a href="<?php echo $smallpics['smalllink12'];?>"><img src="<?php echo $smallpics['smallpic12'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle12'];?>"/></a><br /><a href="<?php echo $smallpics['smalllink12'];?>"><?php echo $smallpics['smalltitle12'];?></a><br />市场价:<?php echo $smallpics['mprice12'];?>/<?php echo $smallpics['sunit12'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice12'];?></samp>/<?php echo $smallpics['sunit12'];?>
</li>
</ul>
<ul class="bc">
<li><a href="<?php echo $titlenews['blink11'];?>"><?php echo $titlenews['btitle11'];?></a></li>
<li><a href="<?php echo $titlenews['blink12'];?>"><?php echo $titlenews['btitle12'];?></a></li>
<li><a href="<?php echo $titlenews['blink13'];?>"><?php echo $titlenews['btitle13'];?></a></li>
</ul>
</dl>
<dl class="br">
<div>推荐商品</div>
<ul class="t1">
<li class="t1_on" id="t1_a" onmousemove="$('#b1_a').show();$('#b1_b').hide();$('#t1_a').removeClass('t_no').addClass('t1_on');$('#t1_b').removeClass('t1_on').addClass('t_no')"><?php echo $recommond['rtype11'];?></li>
<li class="t_no" id="t1_b" onmousemove="$('#b1_b').show();$('#b1_a').hide();$('#t1_b').removeClass('t_no').addClass('t1_on');$('#t1_a').removeClass('t1_on').addClass('t_no')"><?php echo $recommond['rtype12'];?></li>
</ul>
<ul id="b1_a" class="b1">
<?php
foreach($recommond[11] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
<ul class="none b1" id="b1_b">
<?php
foreach($recommond[12] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
</dl>
<div class="hack"></div>
</div>
</div>
<!-- 2 -->
<div class="topic">
<div class="tp"><div class="tl"></div><div class="fl it2" style="font-weight:bold;color:#F59145;"><a href="http://www.jiaju001.com/list/weiyu.html">卫浴</a> | <a href="http://www.jiaju001.com/list/diaoding.html">吊顶</a> | <a href="http://shy.jiaju001.com/list/yuba.html">浴霸</a> | <a href="http://www.jiaju001.com/list/weiyu.html">卫浴五金</a></div>
<div class="tr"></div><div class="trr" style="background:#E4CD43"><a href="<?php echo $titlebar['tblink21'];?>"><?php echo $titlebar['tbar21'];?></a> | <a href="<?php echo $titlebar['tblink22'];?>"><?php echo $titlebar['tbar22'];?></a> | <a href="<?php echo $titlebar['tblink23'];?>"><?php echo $titlebar['tbar23'];?></a> | <a href="<?php echo $titlebar['tblink24'];?>"><?php echo $titlebar['tbar24'];?></a>
<div></div></div></div>
<div class="tq">
<dl class="bl"><a href="<?php echo $spics['slink2'];?>"><img src="<?php echo $spics['spic2'];?>" width="173" height="245" border="0" alt=""/></a><div class="hack"></div></dl>
<dl class="bm">
<ul class="co">
<li><a href="<?php echo $smallpics['smalllink21'];?>"><img src="<?php echo $smallpics['smallpic21'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle21'];?>" /></a><br /><a href="<?php echo $smallpics['smalllink21'];?>"><?php echo $smallpics['smalltitle21'];?></a><br />市场价:<?php echo $smallpics['mprice21'];?>/<?php echo $smallpics['sunit21'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice21'];?></samp>/<?php echo $smallpics['sunit21'];?></li>
<li><a href="<?php echo $smallpics['smalllink22'];?>"><img src="<?php echo $smallpics['smallpic22'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle22'];?>"/></a><br /><a href="<?php echo $smallpics['smalllink22'];?>"><?php echo $smallpics['smalltitle22'];?></a><br />市场价:<?php echo $smallpics['mprice22'];?>/<?php echo $smallpics['sunit22'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice22'];?></samp>/<?php echo $smallpics['sunit22'];?>
</li>
</ul>
<ul class="bc">
<li><a href="<?php echo $titlenews['blink21'];?>"><?php echo $titlenews['btitle21'];?></a></li>
<li><a href="<?php echo $titlenews['blink22'];?>"><?php echo $titlenews['btitle22'];?></a></li>
<li><a href="<?php echo $titlenews['blink23'];?>"><?php echo $titlenews['btitle23'];?></a></li> </ul>
</dl>
<dl class="br">
<div>推荐商品</div>
<ul class="t2">
<li class="t2_on" id="t2_a" onmousemove="$('#b2_a').show();$('#b2_b').hide();$('#t2_a').removeClass('t_no').addClass('t2_on');$('#t2_b').removeClass('t2_on').addClass('t_no')"><?php echo $recommond['rtype21']; ?></li>
<li class="t_no" id="t2_b" onmousemove="$('#b2_b').show();$('#b2_a').hide();$('#t2_b').removeClass('t_no').addClass('t2_on');$('#t2_a').removeClass('t2_on').addClass('t_no')"><?php echo $recommond['rtype22']; ?></li>
</ul>
<ul id="b2_a" class="b2">
<?php
foreach($recommond[21] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
<ul class="none b2" id="b2_b">
<?php
foreach($recommond[22] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
</dl>
<div class="hack"></div>
</div>
</div>
<!-- 3 -->
<div class="topic">
<div class="tp"><div class="tl"></div>
<div class="fl it3" style="font-weight:bold;color:#59850A;"><a href="http://www.jiaju001.com/list/chugui.html">橱柜</a> |<a href="http://www.jiaju001.com/list/bigui.html"> 壁柜</a> | <a href="http://www.jiaju001.com/list/men.html">门窗型材</a> | <a href="http://www.jiaju001.com/list/sanreqi.html">散热器</a></div>
<div class="tr"></div><div class="trr" style="background:#A7DD47"><a href="<?php echo $titlebar['tblink31'];?>"><?php echo $titlebar['tbar31'];?></a> | <a href="<?php echo $titlebar['tblink32'];?>"><?php echo $titlebar['tbar32'];?></a> | <a href="<?php echo $titlebar['tblink33'];?>"><?php echo $titlebar['tbar33'];?></a> | <a href="<?php echo $titlebar['tblink34'];?>"><?php echo $titlebar['tbar34'];?></a>
<div></div></div></div>
<div class="tq">
<dl class="bl"><a href="<?php echo $spics['slink3'];?>"><img src="<?php echo $spics['spic3'];?>" width="173" height="245" border="0" alt="" /></a><div class="hack"></div></dl>
<dl class="bm">
<ul class="co">
<li><a href="<?php echo $smallpics['smalllink31'];?>"><img src="<?php echo $smallpics['smallpic31'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle31'];?>" /></a><br /><a href="<?php echo $smallpics['smalllink31'];?>"><?php echo $smallpics['smalltitle31'];?></a><br />市场价:<?php echo $smallpics['mprice31'];?>/<?php echo $smallpics['sunit31'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice31'];?></samp>/<?php echo $smallpics['sunit31'];?>
</li>
<li><a href="<?php echo $smallpics['smalllink32'];?>"><img src="<?php echo $smallpics['smallpic32'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle32'];?>"/></a><br /><a href="<?php echo $smallpics['smalllink32'];?>"><?php echo $smallpics['smalltitle32'];?></a><br />市场价:<?php echo $smallpics['mprice32'];?>/<?php echo $smallpics['sunit32'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice32'];?></samp>/<?php echo $smallpics['sunit32'];?>
</li>
</ul>
<ul class="bc">
<li><a href="<?php echo $titlenews['blink31'];?>"><samp class="STYLE1"><?php echo $titlenews['btitle31'];?></samp></a></li>
<li><a href="<?php echo $titlenews['blink32'];?>"><samp class="STYLE1"><?php echo $titlenews['btitle32'];?></samp></a></li>
<li><a href="<?php echo $titlenews['blink33'];?>"><?php echo $titlenews['btitle33'];?></a></li>
</ul>
</dl>
<dl class="br">
<div>推荐商品</div>
<ul class="t3">
<li class="t3_on" id="t3_a" onmousemove="$('#b3_a').show();$('#b3_b').hide();$('#t3_a').removeClass('t_no').addClass('t3_on');$('#t3_b').removeClass('t3_on').addClass('t_no')"><?php echo $recommond['rtype31']; ?></li>
<li class="t_no" id="t3_b" onmousemove="$('#b3_b').show();$('#b3_a').hide();$('#t3_b').removeClass('t_no').addClass('t3_on');$('#t3_a').removeClass('t3_on').addClass('t_no')"><?php echo $recommond['rtype32']; ?></li>
</ul>
<ul id="b3_a" class="b3">
<?php
foreach($recommond[31] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
<ul class="none b3" id="b3_b">
<?php
foreach($recommond[32] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
</dl>
<div class="hack"></div>
</div>
</div>
<!-- 4 -->
<div class="topic">
<div class="tp"><div class="tl"></div><div class="fl it4" style="font-weight:bold;color:#0F94BD;"><a href="http://www.jiaju001.com/list/jiadian.html">烟机灶具</a> | <a href="http://www.jiaju001.com/list/jiayongdianqi.html">空调</a> | <a href="http://www.jiaju001.com/list/jiadian.html">热水器</a> | <a href="http://www.jiaju001.com/list/dianliao.html">电工电料</a> | <a href="http://www.jiaju001.com/list/dengju.html">灯具</a></div>
<div class="tr"></div><div class="trr" style="background:#68CFEE"><a href="<?php echo $titlebar['tblink41'];?>"><?php echo $titlebar['tbar41'];?></a> | <a href="<?php echo $titlebar['tblink42'];?>"><?php echo $titlebar['tbar42'];?></a> | <a href="<?php echo $titlebar['tblink43'];?>"><?php echo $titlebar['tbar43'];?></a> | <a href="<?php echo $titlebar['tblink44'];?>"><?php echo $titlebar['tbar44'];?></a>
<div></div></div></div>
<div class="tq">
<dl class="bl"><a href="<?php echo $spics['slink4'];?>"><img src="<?php echo $spics['spic4'];?>" width="173" height="245" border="0" alt="" /></a><div class="hack"></div></dl>
<dl class="bm">
<ul class="co">
<li><a href="<?php echo $smallpics['smalllink41'];?>"><img src="<?php echo $smallpics['smallpic41'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle41'];?>" /></a><br /><a href="<?php echo $smallpics['smalllink41'];?>"><?php echo $smallpics['smalltitle41'];?></a><br />市场价:<?php echo $smallpics['mprice41'];?>/<?php echo $smallpics['sunit41'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice41'];?></samp>/<?php echo $smallpics['sunit41'];?></li>
<li><a href="<?php echo $smallpics['smalllink42'];?>"><img src="<?php echo $smallpics['smallpic42'];?>" width="100" height="100" class="lm_navborder" border="0" alt="<?php echo $smallpics['smalltitle42'];?>"/></a><br /><a href="<?php echo $smallpics['smalllink42'];?>"><?php echo $smallpics['smalltitle42'];?></a><br />市场价:<?php echo $smallpics['mprice42'];?>/<?php echo $smallpics['sunit42'];?><br />会员价:<samp style="color:#FF6600; font-weight:bold"><?php echo $smallpics['vprice42'];?></samp>/<?php echo $smallpics['sunit42'];?></li>
</ul>
<ul class="bc">
<li><a href="<?php echo $titlenews['blink41'];?>"><samp ><?php echo $titlenews['btitle41'];?></samp></a></li><!-- class="STYLE1" -->
<li><a href="<?php echo $titlenews['blink42'];?>"><samp><?php echo $titlenews['btitle42'];?></samp></a></li>
<li><a href="<?php echo $titlenews['blink43'];?>"><?php echo $titlenews['btitle43'];?></a></li>
</ul>
</dl>
<dl class="br">
<div>推荐商品</div>
<ul class="t4">
<li class="t4_on" id="t4_a" onmousemove="$('#b4_a').show();$('#b4_b').hide();$('#t4_a').removeClass('t_no').addClass('t4_on');$('#t4_b').removeClass('t4_on').addClass('t_no')"><?php echo $recommond['rtype41']; ?></li>
<li class="t_no" id="t4_b" onmousemove="$('#b4_b').show();$('#b4_a').hide();$('#t4_b').removeClass('t_no').addClass('t4_on');$('#t4_a').removeClass('t4_on').addClass('t_no')"><?php echo $recommond['rtype42']; ?></li>
</ul>
<ul id="b4_a" class="e4">
<?php
foreach($recommond[41] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
<ul class="none e4" id="b4_b">
<?php
foreach($recommond[42] as $v)
{
echo "<li><a href='http://www.jiaju001.com/goods/".$v['id'].".html'>".substrs($v['goodsname'],32,'0')."</a></li>";
}
?>
</ul>
</dl>
<div class="hack"></div>
</div>
</div>
</div>
</div>
<div class="wrap mt5"><?php require_once './cache/btonglan.php'; echo $btonglan;?></div>
<?php endif;?>
| zyyhong | trunk/jiaju001/site/ad.index.php | PHP | asf20 | 17,940 |
<?php
require_once './include/config.inc.php';
!$id && exit("ID丢失");
!$odiyname && exit("下载资料请先登录或注册");
$shop=$db->get_one("select * from odiy_shops where shopid='$id'");
header("Location: ".$shop['path']."");
?> | zyyhong | trunk/jiaju001/site/file.php | PHP | asf20 | 246 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
{dede:arclist row=10 titlelen=24 orderby=click}
·<a href="http://news.jiaju001.com/">[field:textlink/]</a><br/>
{/dede:arclist}
</body>
</html>
| zyyhong | trunk/jiaju001/site/123.htm | HTML | asf20 | 450 |
<?php
require_once './include/config.inc.php';
if(!$userid)
{
if($_SERVER['HTTP_REFERER'] == '')
{
if($_SESSION['jumps'] != true)
{
$ipt = getip();
include_once('./include/getip.php');
$myobj=new ipLocation();
$address = $myobj->getaddress($ipt);
$myobj=NULL;
session_start();
$_SESSION['jumps'] = true;
$address['area1'] = iconv('gb2312','utf-8', $address['area1'].$address['area2']);
if(strpos($address['area1'], '辽宁') || strpos($address['area1'], '沈阳'))
{
obheader('http://shy.jiaju001.com');
}
}
}
}
//分类
require_once './cache/list.php'; $data['list_db'] = unserialize(stripslashes($lists_db));
require_once './cache/list_son.php'; $data['list_son'] = unserialize(stripslashes($lists_son));
require_once './cache/ad_index.php'; $data['ad']= unserialize(stripslashes($ad));
//友情连接
$query = $db->query("select name,url,img from odiy_links where is_best=1 order by img,linkid");
while($read=$db->fetch_array($query)){$data['links'][]=$read;}
unset($read);$db->free_result($query);
//品牌列表
$query = $db->query("select name,ename,listid from odiy_shops where level=1");
while($read=$db->fetch_array($query)){$data['shops'][]=$read;}
unset($read);$db->free_result($query);
$data['title'] = "北京家居网 - 做最精湛的家具建材消费服务提供商|建材团购|家具团购|电器团购|一站式团购|选材顾问|装修指导|网络直销商城";
$data['keywords'] = "家居建材团购、家居集采 、装修设计咨询、诺贝尔、史密斯、一统 、 安信、 万和、方太、马可波罗、澳柯玛、 箭牌、法恩莎等众多一线品牌";
$data['description'] = '北京家居网-家居建材首选全京城最低价让装修省到底 5月22日北京家居网建材团购全京城最低价再贴券,一站式购齐好礼相送,价格举报有奖 咨询4006503056';//建材团购到北京家居网,最专业的建材网络直销商城,北京家居网建材家具电器团购,超低折扣、劲爆单价、限量抢购,热线:400-650-3056;直击建材价格底限,直接让利消费者,订单执行及售后服务监督,一对一选材顾问消费指导
$tmparr = array('zhuce', 'zhaopin','us','sitemap','peisong','links','dingdan','buy','biz','bao','baozhang','agree','about','yikahui','huiyuan','help');
if(in_array($pgname, $tmparr) && $dirt)
{
if($pgname == 'yikahui'){$part = 'event';}
include_once('./page/header.htm');
include_once('./'.$dirt.'/'. $pgname .'.html');
exit();
}else if($pgname && $dirt)
{
include_once('./'.$dirt.'/'.$pgname.'.html');
exit();
}
require_once './txtad.php'; $txtad = unserialize($txtad);
require_once './cache/home4_titlenews.php'; $titlenews = unserialize($titlenews);
require_once './cache/home4_spics.php'; $spics = unserialize($spics);
require_once './cache/home4_recommond.php'; $recommond = unserialize($recommond);
require_once './cache/home4_smallpics.php'; $smallpics = unserialize($smallpics);
require_once './cache/home4_titlebar.php'; $titlebar = unserialize($titlebar);
include('./core/site/index.php');
?>
| zyyhong | trunk/jiaju001/site/index.php | PHP | asf20 | 3,339 |
<?php
require_once(dirname(__FILE__)."/include/config_base.php");
$aid = intval($aid);
if(empty($aid)) exit();
$dsql = new DedeSql(false);
$tbs = GetChannelTable($dsql,$aid,'arc');
$dsql->ExecuteNoneQuery("Update `#@__full_search` set digg=digg+1,diggtime=".time()." where aid='$aid' ");
$dsql->ExecuteNoneQuery("Update `{$tbs['maintable']}` set digg=digg+1,diggtime=".time()." where ID='$aid' ");
$row = $dsql->GetOne("Select digg From `{$tbs['maintable']}` where ID='$aid' ");
$dsql->Close();
header("Pragma:no-cache");
header("Cache-Control:no-cache");
header("Expires:0");
header("Content-Type: text/html; charset=utf-8");
?>
<span><?php echo $row['digg']; ?></span>
<a href='javascript:alert("顶过了哦!");' class="digvisited"><!--顶一下--></a>
| zyyhong | trunk/jiaju001/news/diggindex.php | PHP | asf20 | 775 |
<?php
require_once(dirname(__FILE__)."/include/config_base.php");
if(!isset($action)) $action = '';
if(empty($action)){
require_once(dirname(__FILE__)."/include/inc_digglist_view.php");
$typeid = (empty($typeid) ? 0 : intval($typeid));
$sorttype = (empty($sorttype) ? 'time' : preg_replace('/[^a-z]/isU','',$sorttype));
$dlist = new DiggList($typeid,$sorttype);
$dlist->Display();
exit();
}
else if($action=='digg')
{
$aid = preg_replace('/[^0-9]/sU','',$aid);
if(empty($aid)) exit();
header("Pragma:no-cache");
header("Cache-Control:no-cache");
header("Expires:0");
header("Content-Type: text/html; charset=utf-8");
$dsql = new DedeSql(false);
$tbs = GetChannelTable($dsql,$aid,'arc');
$dsql->ExecuteNoneQuery("Update `#@__full_search` set digg=digg+1,diggtime=".time()." where aid='$aid' ");
$dsql->ExecuteNoneQuery("Update `{$tbs['maintable']}` set digg=digg+1,diggtime=".time()." where ID='$aid' ");
$row = $dsql->GetOne("Select digg From `{$tbs['maintable']}` where ID='$aid' ");
echo "<div class='diggNum'>{$row['digg']}</div>\r\n";
echo "<div class='diggLink'><a href='".$cfg_cmspath."/digg.php'>浏览</a></div>";
$dsql->Close();
exit();
}
exit();
?> | zyyhong | trunk/jiaju001/news/digg.php | PHP | asf20 | 1,235 |
<!--
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
function heartBeat()
{
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY)
{
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelTop += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX)
{
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater.style.pixelLeft += percent;
if(NS) document.floater.left += percent;
lastScrollX = lastScrollX + percent;
}
}
function checkFocus(x,y)
{
stalkerx = document.floater.pageX;
stalkery = document.floater.pageY;
stalkerwidth = document.floater.clip.width;
stalkerheight = document.floater.clip.height;
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
else return false;
}
function grabIt(e) {
if(IE)
{
whichIt = event.srcElement;
while (whichIt.id.indexOf("floater") == -1)
{
whichIt = whichIt.parentElement;
if (whichIt == null) { return true; }
}
whichIt.style.pixelLeft = whichIt.offsetLeft;
whichIt.style.pixelTop = whichIt.offsetTop;
currentX = (event.clientX + document.body.scrollLeft);
currentY = (event.clientY + document.body.scrollTop);
}
else
{
window.captureEvents(Event.MOUSEMOVE);
if(checkFocus (e.pageX,e.pageY))
{
whichIt = document.floater;
StalkerTouchedX = e.pageX-document.floater.pageX;
StalkerTouchedY = e.pageY-document.floater.pageY;
}
}
return true;
}
function moveIt(e) {
if (whichIt == null) { return false; }
if(IE) {
newX = (event.clientX + document.body.scrollLeft);
newY = (event.clientY + document.body.scrollTop);
distanceX = (newX - currentX); distanceY = (newY - currentY);
currentX = newX; currentY = newY;
whichIt.style.pixelLeft += distanceX;
whichIt.style.pixelTop += distanceY;
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
event.returnValue = false;
}
else
{
whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset+50)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
return false;
}
return false;
}
function dropIt() {
whichIt = null;
if(NS) window.releaseEvents (Event.MOUSEMOVE);
return true;
}
if(NS) {
window.captureEvents(Event.MOUSEUPEvent.MOUSEDOWN);
window.onmousedown = grabIt;
window.onmousemove = moveIt;
window.onmouseup = dropIt;
}
if(IE) {
document.onmousedown = grabIt;
document.onmousemove = moveIt;
document.onmouseup = dropIt;
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
--> | zyyhong | trunk/jiaju001/news/member/js/float.js | JavaScript | asf20 | 4,203 |
var ie = document.all != null;
var moz = !ie && document.getElementById != null && document.layers == null;
/*
* Extends the event object with srcElement, cancelBubble, returnValue,
* fromElement and toElement
*/
function extendEventObject() {
Event.prototype.__defineSetter__("returnValue", function (b) {
if (!b) this.preventDefault();
});
Event.prototype.__defineSetter__("cancelBubble", function (b) {
if (b) this.stopPropagation();
});
Event.prototype.__defineGetter__("srcElement", function () {
var node = this.target;
while (node.nodeType != 1) node = node.parentNode;
return node;
});
Event.prototype.__defineGetter__("fromElement", function () {
var node;
if (this.type == "mouseover")
node = this.relatedTarget;
else if (this.type == "mouseout")
node = this.target;
if (!node) return;
while (node.nodeType != 1) node = node.parentNode;
return node;
});
Event.prototype.__defineGetter__("toElement", function () {
var node;
if (this.type == "mouseout")
node = this.relatedTarget;
else if (this.type == "mouseover")
node = this.target;
if (!node) return;
while (node.nodeType != 1) node = node.parentNode;
return node;
});
Event.prototype.__defineGetter__("offsetX", function () {
return this.layerX;
});
Event.prototype.__defineGetter__("offsetY", function () {
return this.layerY;
});
}
/*
* Emulates element.attachEvent as well as detachEvent
*/
function emulateAttachEvent() {
HTMLDocument.prototype.attachEvent =
HTMLElement.prototype.attachEvent = function (sType, fHandler) {
var shortTypeName = sType.replace(/on/, "");
fHandler._ieEmuEventHandler = function (e) {
window.event = e;
return fHandler();
};
this.addEventListener(shortTypeName, fHandler._ieEmuEventHandler, false);
};
HTMLDocument.prototype.detachEvent =
HTMLElement.prototype.detachEvent = function (sType, fHandler) {
var shortTypeName = sType.replace(/on/, "");
if (typeof fHandler._ieEmuEventHandler == "function")
this.removeEventListener(shortTypeName, fHandler._ieEmuEventHandler, false);
else
this.removeEventListener(shortTypeName, fHandler, true);
};
}
/*
* This function binds the event object passed along in an
* event to window.event
*/
function emulateEventHandlers(eventNames) {
for (var i = 0; i < eventNames.length; i++) {
document.addEventListener(eventNames[i], function (e) {
window.event = e;
}, true); // using capture
}
}
/*
* Simple emulation of document.all
* this one is far from complete. Be cautious
*/
function emulateAllModel() {
var allGetter = function () {
var a = this.getElementsByTagName("*");
var node = this;
a.tags = function (sTagName) {
return node.getElementsByTagName(sTagName);
};
return a;
};
HTMLDocument.prototype.__defineGetter__("all", allGetter);
HTMLElement.prototype.__defineGetter__("all", allGetter);
}
function extendElementModel() {
HTMLElement.prototype.__defineGetter__("parentElement", function () {
if (this.parentNode == this.ownerDocument) return null;
return this.parentNode;
});
HTMLElement.prototype.__defineGetter__("children", function () {
var tmp = [];
var j = 0;
var n;
for (var i = 0; i < this.childNodes.length; i++) {
n = this.childNodes[i];
if (n.nodeType == 1) {
tmp[j++] = n;
if (n.name) { // named children
if (!tmp[n.name])
tmp[n.name] = [];
tmp[n.name][tmp[n.name].length] = n;
}
if (n.id) // child with id
tmp[n.id] = n
}
}
return tmp;
});
HTMLElement.prototype.contains = function (oEl) {
if (oEl == this) return true;
if (oEl == null) return false;
return this.contains(oEl.parentNode);
};
}
/*
document.defaultView.getComputedStyle(el1,<BR>null).getPropertyValue('top');
*/
function emulateCurrentStyle(properties) {
HTMLElement.prototype.__defineGetter__("currentStyle", function () {
var cs = {};
var el = this;
for (var i = 0; i < properties.length; i++) {
//cs.__defineGetter__(properties[i], function () {
// window.status = "i: " + i ;
// return document.defaultView.getComputedStyle(el, null).getPropertyValue(properties[i]);
//});
cs.__defineGetter__(properties[i], encapsulateObjects(el, properties[i]));
}
return cs;
});
}
// used internally for emualteCurrentStyle
function encapsulateObjects(el, sProperty) {
return function () {
return document.defaultView.getComputedStyle(el, null).getPropertyValue(sProperty);
};
}
function emulateHTMLModel() {
// This function is used to generate a html string for the text properties/methods
// It replaces '\n' with "<BR"> as well as fixes consecutive white spaces
// It also repalaces some special characters
function convertTextToHTML(s) {
s = s.replace(/\&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, "<BR>");
while (/\s\s/.test(s))
s = s.replace(/\s\s/, " ");
return s.replace(/\s/g, " ");
}
HTMLElement.prototype.insertAdjacentHTML = function (sWhere, sHTML) {
var df; // : DocumentFragment
var r = this.ownerDocument.createRange();
switch (String(sWhere).toLowerCase()) {
case "beforebegin":
r.setStartBefore(this);
df = r.createContextualFragment(sHTML);
this.parentNode.insertBefore(df, this);
break;
case "afterbegin":
r.selectNodeContents(this);
r.collapse(true);
df = r.createContextualFragment(sHTML);
this.insertBefore(df, this.firstChild);
break;
case "beforeend":
r.selectNodeContents(this);
r.collapse(false);
df = r.createContextualFragment(sHTML);
this.appendChild(df);
break;
case "afterend":
r.setStartAfter(this);
df = r.createContextualFragment(sHTML);
this.parentNode.insertBefore(df, this.nextSibling);
break;
}
};
HTMLElement.prototype.__defineSetter__("outerHTML", function (sHTML) {
var r = this.ownerDocument.createRange();
r.setStartBefore(this);
var df = r.createContextualFragment(sHTML);
this.parentNode.replaceChild(df, this);
return sHTML;
});
HTMLElement.prototype.__defineGetter__("canHaveChildren", function () {
switch (this.tagName) {
case "AREA":
case "BASE":
case "BASEFONT":
case "COL":
case "FRAME":
case "HR":
case "IMG":
case "BR":
case "INPUT":
case "ISINDEX":
case "LINK":
case "META":
case "PARAM":
return false;
}
return true;
});
HTMLElement.prototype.__defineGetter__("outerHTML", function () {
var attr, attrs = this.attributes;
var str = "<" + this.tagName;
for (var i = 0; i < attrs.length; i++) {
attr = attrs[i];
if (attr.specified)
str += " " + attr.name + '="' + attr.value + '"';
}
if (!this.canHaveChildren)
return str + ">";
return str + ">" + this.innerHTML + "</" + this.tagName + ">";
});
HTMLElement.prototype.__defineSetter__("innerText", function (sText) {
this.innerHTML = convertTextToHTML(sText);
return sText;
});
var tmpGet;
HTMLElement.prototype.__defineGetter__("innerText", tmpGet = function () {
var r = this.ownerDocument.createRange();
r.selectNodeContents(this);
return r.toString();
});
HTMLElement.prototype.__defineSetter__("outerText", function (sText) {
this.outerHTML = convertTextToHTML(sText);
return sText;
});
HTMLElement.prototype.__defineGetter__("outerText", tmpGet);
HTMLElement.prototype.insertAdjacentText = function (sWhere, sText) {
this.insertAdjacentHTML(sWhere, convertTextToHTML(sText));
};
} | zyyhong | trunk/jiaju001/news/member/js/ieemu.js | JavaScript | asf20 | 7,763 |
<!--
function CheckSubmit()
{
return true;
}
--> | zyyhong | trunk/jiaju001/news/member/js/blank.js | JavaScript | asf20 | 55 |
var MenuWidth = 120;
var ItemHeight = 16;
var ItemNumber = 0;
//WebFX右键菜单程序被织梦修改的项为:
//增加了默认宽度和菜单高度的定义
//这样可以修正原来第一次载入时显示不正确的情况
ContextMenu.intializeContextMenu=function()
{
document.body.insertAdjacentHTML("BeforeEnd", '<iframe src="#" scrolling="no" class="WebFX-ContextMenu" marginwidth="0" marginheight="0" frameborder="0" style="position:absolute;display:none;z-index:50000000;" id="WebFX_PopUp"></iframe>');
WebFX_PopUp = self.frames["WebFX_PopUp"]
WebFX_PopUpcss = document.getElementById("WebFX_PopUp")
document.body.attachEvent("onmousedown",function(){WebFX_PopUpcss.style.display="none"})
WebFX_PopUpcss.onfocus = function(){WebFX_PopUpcss.style.display="inline"};
WebFX_PopUpcss.onblur = function(){WebFX_PopUpcss.style.display="none"};
self.attachEvent("onblur",function(){WebFX_PopUpcss.style.display="none"})
}
function ContextSeperator(){}
function ContextMenu(){}
ContextMenu.showPopup=function(x,y)
{
WebFX_PopUpcss.style.display = "block"
}
ContextMenu.display=function(popupoptions,h)
{
var eobj,x,y;
eobj = window.event;
x = eobj.x;
y = eobj.y
/*
not really sure why I had to pass window here
it appears that an iframe inside a frames page
will think that its parent is the frameset as
opposed to the page it was created in...
*/
ContextMenu.populatePopup(popupoptions,window)
ContextMenu.showPopup(x,y);
ContextMenu.fixSize();
ContextMenu.fixPos(x,y);
eobj.cancelBubble = true;
eobj.returnValue = false;
}
//TODO
ContextMenu.getScrollTop=function()
{
return document.body.scrollTop;
//window.pageXOffset and window.pageYOffset for moz
}
ContextMenu.getScrollLeft=function()
{
return document.body.scrollLeft;
}
ContextMenu.fixPos=function(x,y)
{
var docheight,docwidth,dh,dw;
docheight = document.body.clientHeight;
docwidth = document.body.clientWidth;
dh = (WebFX_PopUpcss.offsetHeight+y) - docheight;
dw = (WebFX_PopUpcss.offsetWidth+x) - docwidth;
if(dw>0)
{ WebFX_PopUpcss.style.left = (x - dw) + ContextMenu.getScrollLeft() + "px"; }
else
{ WebFX_PopUpcss.style.left = x + ContextMenu.getScrollLeft(); }
//
if(dh>0)
{ WebFX_PopUpcss.style.top = (y - dh) + ContextMenu.getScrollTop() + "px" }
else
{ WebFX_PopUpcss.style.top = y + ContextMenu.getScrollTop(); }
}
ContextMenu.fixSize=function()
{
//这个方法是动态调整Iframe的宽度和高度,被织梦修改过
//var body;
//WebFX_PopUpcss.style.width = "120px";
//body = WebFX_PopUp.document.body;
//var dummy = WebFX_PopUpcss.offsetHeight + " dummy";
//h = body.scrollHeight + WebFX_PopUpcss.offsetHeight - body.clientHeight;
//w = body.scrollWidth + WebFX_PopUpcss.offsetWidth - body.clientWidth;
WebFX_PopUpcss.style.height = ItemHeight * ItemNember + "px";
WebFX_PopUpcss.style.width = MenuWidth + "px";
ItemNember = 0;
}
ContextMenu.populatePopup=function(arr,win)
{
var alen,i,tmpobj,doc,height,htmstr;
alen = arr.length;
ItemNember = alen;
doc = WebFX_PopUp.document;
doc.body.innerHTML = ""
if (doc.getElementsByTagName("LINK").length == 0) {
doc.open();
doc.write('<html><head><link rel="StyleSheet" type="text/css" href="js/contextmenu.css"></head><body></body></html>');
doc.close();
}
for(i=0;i<alen;i++)
{
if(arr[i].constructor==ContextItem)
{
tmpobj=doc.createElement("DIV");
tmpobj.noWrap = true;
tmpobj.className = "WebFX-ContextMenu-Item";
if(arr[i].disabled)
{
htmstr = '<span class="WebFX-ContextMenu-DisabledContainer">'
htmstr += arr[i].text+'</span>'
tmpobj.innerHTML = htmstr
tmpobj.className = "WebFX-ContextMenu-Disabled";
tmpobj.onmouseover = function(){this.className="WebFX-ContextMenu-Disabled-Over"}
tmpobj.onmouseout = function(){this.className="WebFX-ContextMenu-Disabled"}
}
else
{
tmpobj.innerHTML = arr[i].text;
tmpobj.onclick = (function (f)
{
return function () {
win.WebFX_PopUpcss.style.display='none'
if (typeof(f)=="function"){ f(); }
};
})(arr[i].action);
tmpobj.onmouseover = function(){this.className="WebFX-ContextMenu-Over"}
tmpobj.onmouseout = function(){this.className="WebFX-ContextMenu-Item"}
}
doc.body.appendChild(tmpobj);
}
else
{
doc.body.appendChild(doc.createElement("DIV")).className = "WebFX-ContextMenu-Separator";
}
}
doc.body.className = "WebFX-ContextMenu-Body" ;
doc.body.onselectstart = function(){return false;}
}
function ContextItem(str,fnc,disabled)
{
this.text = str;
this.action = fnc;
this.disabled = disabled || false;
} | zyyhong | trunk/jiaju001/news/member/js/context_menu.js | JavaScript | asf20 | 4,804 |
.WebFX-ContextMenu {
border: 0;/*2px outset;*/
width: 10px;
}
.WebFX-ContextMenu-Body {
background-color: Menu;
margins: 0px;
padding: 1px;
border: 2px outset;
}
.WebFX-ContextMenu-Item {
cursor: default;
font: menu;
color: MenuText;
width: 100%;
padding: 2px 16px 2px 16px;
}
.WebFX-ContextMenu-Over {
cursor: default;
background-color: highlight;
font: menu;
width: 100%;
padding: 2px 16px 2px 16px;
color: highlighttext;
}
.WebFX-ContextMenu-Disabled {
cursor: default;
font: menu;
width: 100%;
padding: 2px 16px 2px 16px;
color:graytext;
}
.WebFX-ContextMenu-Disabled-Over {
cursor: default;
background-color: highlight;
font: menu;
width: 100%;
padding: 2px 16px 2px 16px;
color: graytext;
}
.WebFX-ContextMenu-Separator
{
font-size: 0pt;
border: 1px inset;
height: 2px;
overflow: hidden;
margin: 3px 1px 3px 1px;
}
.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer
{
display: block;
width: 100%;
vertical-align: center;
}
/*very nice hack by erik below */
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer
{
display: block;
background: GrayText;
filter: chroma(color=#010101) dropshadow(color=ButtonHighlight, offx=1, offy=1);
width: 100%;
vertical-align: center;
}
.WebFX-ContextMenu-Disabled .WebFX-ContextMenu-DisabledContainer .WebFX-ContextMenu-DisabledContainer
{
background: Transparent;
filter: gray()
/* Remove all bright shades of gray */
chroma(color=#ffffff) chroma(color=#fefefe) chroma(color=#fdfdfd)
chroma(color=#fcfcfc) chroma(color=#fbfbfb) chroma(color=#fafafa)
chroma(color=#f9f9f9) chroma(color=#f8f8f8) chroma(color=#f7f7f7)
chroma(color=#f6f6f6) chroma(color=#f5f5f5) chroma(color=#f4f4f4)
chroma(color=#f3f3f3)
mask(color=#010101);
}
.WebFX-ContextMenu-Disabled-Over .WebFX-ContextMenu-DisabledContainer .WebFX-ContextMenu-DisabledContainer
{
} | zyyhong | trunk/jiaju001/news/member/js/contextmenu.css | CSS | asf20 | 2,376 |
<!--
function DedeAjax(WiteOKFunc){ //WiteOKFunc 为异步状态处理函数
//xmlhttp和xmldom对象
this.xhttp = null;
this.xdom = null;
//post或get发送数据的键值对
this.keys = Array();
this.values = Array();
this.keyCount = -1;
//http请求头
this.rkeys = Array();
this.rvalues = Array();
this.rkeyCount = -1;
//初始化xmlhttp
if(window.XMLHttpRequest){//IE7, Mozilla ,Firefox 等浏览器内置该对象
this.xhttp = new XMLHttpRequest();
}else if(window.ActiveXObject){//IE6、IE5
try { this.xhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { }
if (this.xhttp == null) try { this.xhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) { }
}
this.xhttp.onreadystatechange = WiteOKFunc;
//rs: responseBody、responseStream、responseXml、responseText
//以下为成员函数
//--------------------------------
//初始化xmldom
this.InitXDom = function(){
var obj = null;
if (typeof(DOMParser) != "undefined") { // Gecko、Mozilla、Firefox
var parser = new DOMParser();
obj = parser.parseFromString(xmlText, "text/xml");
} else { // IE
try { obj = new ActiveXObject("MSXML2.DOMDocument");} catch (e) { }
if (obj == null) try { obj = new ActiveXObject("Microsoft.XMLDOM"); } catch (e) { }
}
this.xdom = obj;
};
//增加一个POST或GET键值
this.AddSendKey = function(skey,svalue){
this.keyCount++;
this.keys[this.keyCount] = skey;
this.values[this.keyCount] = escape(svalue);
};
//增加一个Http请求头
this.AddHttpHead = function(skey,svalue){
this.rkeyCount++;
this.rkeys[this.rkeyCount] = skey;
this.rvalues[this.rkeyCount] = svalue;
};
//清除当前对象的哈希表参数
this.ClearSet = function(){
this.keyCount = -1;
this.keys = Array();
this.values = Array();
this.rkeyCount = -1;
this.rkeys = Array();
this.rvalues = Array();
};
//用Post方式发送数据
this.SendPost = function(purl,ptype){
var pdata = "";
var httphead = "";
var i=0;
this.state = 0;
this.xhttp.open("POST", purl, true);
if(this.rkeyCount!=-1){ //发送用户自行设定的请求头
for(;i<=this.rkeyCount;i++){
this.xhttp.setRequestHeader(this.rkeys[i],this.rvalues[i]);
}
}
if(ptype=="text") this.xhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
if(this.keyCount!=-1){ //post数据
for(;i<=this.keyCount;i++){
if(pdata=="") pdata = this.keys[i]+'='+this.values[i];
else pdata += "&"+this.keys[i]+'='+this.values[i];
}
}
this.xhttp.send(pdata);
};
} // End Class DedeAjax
--> | zyyhong | trunk/jiaju001/news/member/js/dedeajax.js | JavaScript | asf20 | 2,627 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>我的好友</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {left:10;top:0;width:150;height:100;position:absolute;z-index:3}
.mbb { margin-bottom:3px; border:1px dashed #cdcdcd; }
.mbline { border-top:1px solid #eeeeee; border-bottom:1px solid #eeeeee }
button {margin-left:6px; border: 1px solid; border-color: #D9EDC0; background: #F9FCEF; height: 20px; line-height: 20px; cursor: pointer; }
</style>
<script language='javascript' src='area.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
</head>
<body leftmargin='0' topmargin='0'>
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top"><?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:3px;margin-top:10px;">
<tr align="right" bgcolor="#ffffff">
<div class="manage_company_right_title">
<ul><li>我的好友:</li></ul>
</div>
</tr>
</table>
<form name="form" method="post">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D9EDC0" class="checkbox">
<tr height="24">
<td align="left" bgcolor="#FFFFFF"> <?php
$friends = $dbpage->GetDataList();
while($val = $friends->GetArray('dm')) {
?>
<input type="checkbox" name="delete[]" value="<?php echo $val['friend_id']?>" /><a href="index.php?uid=<?php echo $val['userid'];?>" target="_blank"><?php echo $val['uname'];?></a> [<a href="pm.php?action=send&vwriter=<?php echo urlencode($val['userid']);?>" target="_blank">发短信</a>]<?php
}?></td>
</tr>
<tr height="24">
<td height="26" valign="middle" bgcolor="#F9FCEF"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onClick="checkall(this.form)" /> 全选 <button type="submit" name="deletefriend" value="true">删除</button> <?php echo $dbpage->GetPageList(7);?></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php
include(dirname(__FILE__)."/foot.htm");
?>
</div>
<script type="text/javascript">
function checkall(form, prefix, checkall) {
var checkall = checkall ? checkall : 'chkall';
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
e.checked = form.elements[checkall].checked;
}
}
}
</script>
</body>
</html> | zyyhong | trunk/jiaju001/news/member/templets/my_friends.htm | HTML | asf20 | 3,128 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>发表文章</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function checkSubmit()
{
if(document.form1.title.value==""){
alert("文章标题不能为空!");
document.form1.title.focus();
return false;
}
if(document.form1.typeid.value==0){
alert("文章隶属栏目必须选择!");
return false;
}
if(document.form1.vdcode.value==""){
document.form1.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;" class="turnleft">
<tr>
<td>
<div class="manage_company_right_title">
<ul><li>发表新文章:</li></ul>
</div>
</td>
</tr>
<tr>
<form name="form1" action="article_add_action.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="addArc">
<input type="hidden" name="channelid" value="<?php echo $channelid; ?>">
<td height="183" valign="top" style="padding-top:3px">
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆常规参数:</strong></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">文章标题:</td>
<td><input name="title" type="text" id="title" size="30" style="width:240px" class="company_manage_form_label" />
<font color="#FF0000">*</font></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">文章出处:</td>
<td><input name="source" type="text" style="width:160px" id="source" size="30" class="company_manage_form_label" />
作者:
<input name="writer" type="text" id="writer" style="width:120px" size="15" value="<?php echo $cfg_ml->M_UserName?>" class="company_manage_form_label" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">隶属栏目:</td>
<td><?php
$selname = '请选择...';
$delv = '0';
if(!empty($cid)){
$crow = $dsql->GetOne("Select ID,typename From #@__arctype where ID='$cid' ");
$selname = $crow['typename'];
$selv = $crow['ID'];
}
echo GetTypeidSelMember('form1','typeid','selbt1',$channelid,$selv,$selname,false);
?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">验证码:</td>
<td><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84"><input name="vdcode" type="text" id="vdcode" style="width:80px" size="10" class="yanzhengma" /></td>
<td width="116"><img src='../include/vdimgck.php' width='50' height='20' /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">我的分类:</td>
<td>
<select name="mtype" id="mtype" style="width:200px" class="company_manage_form_option">
<option value='0'>--请选择分类--</option>
<?php
$dsql->SetQuery("Select * From #@__member_arctype where memberid='".$cfg_ml->M_ID."' ;");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->aid."'>".$row->typename."</option>\r\n";
}
?>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">内容简介:</td>
<td><textarea name="description" id="description" style="width:80%;height:50px"></textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">标签(TAG):</td>
<td><input name="keywords" type="text" id="keywords" style="width:50%;" value="" class="company_manage_form_label" />
(多个标签(TAG)用空格分开) </td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">缩略图:</td>
<td><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePic($Obj('picview'),$Obj('litpic'),$Obj('picarea'));" class="company_manage_form_label" /></td>
</tr>
<tr id="picarea" style='display:none'>
<td height="28">预 览:</td>
<td><img src="img/pview.gif" id="picview" width="150" height="120" /></td>
</tr>
</table></td>
</tr>
<?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆文章内容:<font color="#FF0000">*</font></strong></td>
</tr>
<tr>
<td><?php
GetEditor("body","",350,"Member");
?></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D9EDC0">
<tr bgcolor="#F7FDF0">
<td width="400%" height="45" colspan="4" align="center"> <input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" style="cursor:hand" onClick="location.reload();"> </td>
</tr>
</table></td>
</form>
</tr>
<tr>
<td height="10"></td>
</tr>
</table> </td>
</tr>
</table>
<?php
$dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/article_add.htm | HTML | asf20 | 8,509 |
<!-- 头部开始 -->
<div id="manage_company_header">
<div id="manage_company_top">
<div class="manage_company_logo">
</div>
<div class="manage_company_welcome"><span class="manage_company_welcome_green"><?php echo $cfg_ml->M_UserName?></span> 你好,欢迎登录会员中心。<?php if($cfg_ml->M_Newpm > 0){ ?> <b>新消息</b>(<a href="pm.php?folder=inbox"><font color="red"><?php echo $cfg_ml->M_Newpm;?></a></font>) <?php }?>
</div>
<div class="clear"></div>
</div>
<div id="manage_company_menubg">
<div id="manage_company_menu">
<div class="manage_company_topimg">
</div>
<div class="manage_company_text">
<ul>
<li><a href="index_do.php?fmdo=login&dopost=exit">退出登录</a></li>
<li><a href="index.php">中心主页</a></li>
<li><a href="<?php echo $cfg_indexurl?>">网站主页</a></li>
<?php if($cfg_ml->M_utype==1){ ?>
<li><a href="index.php?uid=<?php echo $cfg_ml->M_LoginID?>">企业空间</a></li>
<?php }else{ ?>
<li><a href="index.php?uid=<?php echo $cfg_ml->M_LoginID?>">个人空间</a></li>
<?php } ?>
<li><a href="search_member.php">搜索会员</a></li>
<li><a href="control.php">控制面板</a></li>
<?php
if($cfg_pp_isopen==1 && $cfg_pp_indexurl!=''){
echo " <li><a href='{$cfg_pp_indexurl}' target='_blank'>{$cfg_pp_name}</a></li>\n";
}
?>
</ul>
</div>
</div>
</div>
</div>
<div class="clear">
</div>
<?php
if($cfg_ml->M_Newpm > 0){
?>
<div style="display:none;">
<script type="text/javascript">
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="0" height="0">');
document.write('<param name="movie" value="newpm.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<embed src="newpm.swf" wmode="opaque" menu="false" quality="high" width="0" height="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</div>
<?php } ?> | zyyhong | trunk/jiaju001/news/member/templets/head.htm | HTML | asf20 | 2,710 |
<?php
if($cfg_ml->M_utype == 0){
require_once(dirname(__FILE__)."/menu.php");
}else
{
?>
<script src="<?php echo $cfg_member_dir;?>/jquery.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/ecmascript">
<!--
$(document).ready(function(){
smenu = $(".manage_company_title .manage_company_title_bg");
i=1;
cname = "dushow";
smenu.each(function(){
$(this).attr("_deshow",i);
mbox = $(this).next(".manage_company_main_text");
cbname = cname+i;
if($.cookie(cbname)==null){
$.cookie(cbname,mbox.css("display"));
}else{
$.cookie(cbname) == "none" ? mbox.hide("fast") : mbox.show("fast");
}
i++;
});
smenu.click(function(){
mbox = $(this).next(".manage_company_main_text");
id = $(this).attr("_deshow");
cbname = cname+id;
if(mbox.css("display")=="block"){
mbox.hide("fast");
$.cookie(cbname,"none");
}else{
mbox.show("fast");
$.cookie(cbname,"block");
}
});
});
-->
</script>
<!-- //企业空间 -->
<div id="manage_company_left">
<div class="manage_company_title">
<div class="manage_company_title_bg">基本资料</div>
<div class="manage_company_main_text">
<ul>
<li><a href="com_edit_pwd.php">修改密码</a></li>
<li><a href="mycominfo.php">企业资料</a></li>
<li><a href="mycominfo.php?action=culture">企业文化</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">工具箱</div>
<div class="manage_company_main_text">
<ul>
<li><a href="money2score.php">金币、积分兑换</a></li>
<li><a href="comstow.php">我的收藏夹</a></li>
<li><a href="comguestbook.php">我的留言簿</a></li>
<li><a href="comupload.php">附件管理</a></li>
<li><a href="comlink.php">友情链接</a></li>
<li><a href="com_archives_type.php">管理我的分类</a></li>
<li><a href="myorder.php">在线意向定单</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">信息发布</div>
<div class="manage_company_main_text">
<ul>
<li><a href="do.php?action=add&channelid=-2">供求信息发布</a></li>
<li><a href="do.php?action=list&channelid=-2">供求信息管理</a></li>
<li><a href="addjob.php">发布招聘信息</a></li>
<li><a href="joblist.php">招聘信息管理</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">产品管理</div>
<div class="manage_company_main_text">
<ul>
<li><a href="archives_add.php?channelid=5">发布新产品</a></li>
<li><a href="content_list.php?channelid=5">已发布产品管理</a></li>
</ul>
</div>
</div>
<!-- add -->
<div class="manage_company_title">
<div class="manage_company_title_bg">文章管理</div>
<div class="manage_company_main_text">
<ul>
<li><a href="article_add.php">发表新文章</a></li>
<li><a href="content_list.php?channelid=1">已发表的文章</a></li>
</ul>
</div>
</div>
<?php
if($cfg_mb_sendall=='Y'){
if(!isset($dsql) || !is_object($dsql)){
$dsql = new DedeSql(false);
}
$dsql->SetQuery("Select ID,typename,useraddcon,usermancon From #@__channeltype where issend=1 And issystem=0 And sendmember>0 ");
$dsql->Execute();
while($menurow = $dsql->GetArray())
{
if(empty($menurow['useraddcon'])) $menurow['useraddcon'] = 'archives_add.php';
if(empty($menurow['usermancon'])) $menurow['usermancon'] = 'content_list.php';
?>
<div class="manage_company_title">
<div class="manage_company_title_bg"><?php echo $menurow['typename']?></div>
<div class="manage_company_main_text">
<ul>
<li><a href="<?php echo $menurow['useraddcon']; ?>?channelid=<?php echo $menurow['ID']?>">发布新<?php echo $menurow['typename']?></a></li>
<li><a href="<?php echo $menurow['usermancon']; ?>?channelid=<?php echo $menurow['ID']?>">已发布<?php echo $menurow['typename']?></a></li>
</ul>
</div>
</div>
<?php
}}
?>
</div>
<?php
}
?> | zyyhong | trunk/jiaju001/news/member/templets/commenu.php | PHP | asf20 | 4,937 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>更改会员资料</title>
<link href="newskin.css" rel="stylesheet" type="text/css">
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript'src='area.js'></script>
<script>
function checkSubmit()
{
if(document.form2.email.value=="")
{
document.form2.email.focus();
alert("Email不能为空!");
return false;
}
if(document.form2.uname.value=="")
{
document.form2.uname.focus();
alert("用户昵称不能为空!");
return false;
}
/*
if(document.form2.vdcode.value=="")
{
document.form2.vdcode.focus();
alert("验证码不能为空!");
return false;
}
*/
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:5px;">
<tr>
<div class="manage_company_right_title" style="margin-top:10px;">
<ul><li>更改个人资料:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainbody" style="text-align:left;">
<form name="form2" action="index_do.php" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="fmdo" value="user" />
<input type="hidden" name="dopost" value="editUser" />
<tr>
<td width="17%" height="25" align="right" >登陆用户名:</td>
<td width="83%" height="25" >
<?php echo $row['userid']?> </td>
</tr>
<tr>
<td height="25" align="right" >你的Email:</td>
<td height="25" ><input name="email" type="text" id="email" value="<?php echo $row['email']?>" class="company_manage_form_label" />
*</td>
</tr>
<tr>
<td height="25" align="right" >网上昵称:</td>
<td height="25" ><input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" size="20" class="company_manage_form_label" />
*性别:
<input type="radio" name="sex" value="男"<?php if($rowper['sex']=="男" ) echo" checked" ;?>>
男 <input type="radio" name="sex" value="女"<?php if($rowper['sex']=="女" ) echo" checked" ;?>>
女</td>
</tr>
<tr>
<td height="25" align="right" >验证码:</td>
<td height="25" ><table width="200" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="84" ><input name="vdcode" type="text" id="vdcode" size="10" class="yanzhengma" ></td>
<td width="116" ><img src='../include/vdimgck.php' width='50' height='20'></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="right" >你的生日:</td>
<td height="25" ><input name="birthday" type="text" id="birthday" size="20" value="<?php echo $rowper['birthday']?>" class="company_manage_form_label" /> </td>
</tr>
<tr>
<td height="25" align="right" >你的体型:</td>
<td height="25" > <select name="weight" class="company_manage_form_option" >
<option value='<?php echo $rowper['weight']?>'>
<?php echo $rowper['weight']?>
</option>
<option value='平均'>平均</option>
<option value='苗条/纤细'>苗条/纤细</option>
<option value='健壮'>健壮</option>
<option value='略胖'>略胖</option>
<option value='大型'>大型</option>
</select> 身高:
<input name="height" value="<?php echo $rowper['height']?>" type="text" id="height" size="5" class="yanzhengma" >
厘米</td>
</tr>
<tr>
<td height="25" align="right" >你的职业:</td>
<td height="25" ><input type="radio" name="job" value="学生" <?php if($rowper['job']=="学生" ) echo" checked" ;?>>
学生
<input type="radio" name="job" value="职员" <?php if($rowper['job']=="职员" ) echo" checked" ;?>>
职员
<input type="radio" name="job" value="白领" <?php if($rowper['job']=="白领" ) echo" checked" ;?>>
白领
<input type="radio" name="job" value="失业中" <?php if($rowper['job']=="失业中" ) echo" checked" ;?>>
失业中</td>
</tr>
<tr>
<td height="25" align="right" >所在地区:</td>
<td height="25" >
<select name="province" size="1" id="province" width="4" onChange="javascript:selNext(this.document.form2.city,this.value)" style="width:85" class="company_manage_form_option" >
<option value="0">--不限--</option>
<?php
$dsql->SetQuery("Select * From #@__area where reid=0");
$dsql->Execute();
while($rowa = $dsql->GetArray()){
if($rowper['province']==$rowa['id'])
{ echo "<option value='".$rowa['id']."' selected>".$rowa['name']."</option>\r\n"; }
else
{ echo "<option value='".$rowa['id']."'>".$rowa['name']."</option>\r\n"; }
}
?>
</select>
城市:
<select id="city" name="city" width="4" style="width:85" class="company_manage_form_option" >
<option value="0">--不限--</option>
<?php
if(!empty($row['province'])){
$dsql->SetQuery("Select * From #@__area where rid=".$row['province']);
$dsql->Execute();
while($rowa = $dsql->GetArray()){
if($rowper['city']==$rowa['eid'])
{ echo "<option value='".$rowa['eid']."' selected>".$rowa['name']."</option>\r\n"; }
else
{ echo "<option value='".$rowa['eid']."'>".$rowa['name']."</option>\r\n"; }
}}
?>
</select> </td>
</tr>
<tr>
<td height="25" align="right" >个人说明:</td>
<td height="25" >[少于是125中文字] </td>
</tr>
<tr>
<td height="25" align="right" > </td>
<td height="25" ><textarea name="myinfo" cols="40" rows="3" id="myinfo" class="company_manage_form_label1" style="width:400px;"><?php echo $rowper['myinfo']?></textarea></td>
</tr>
<tr>
<td height="25" align="right" ><strong>详细介绍:</strong></td>
<td height="25" > </td>
</tr>
<tr align="center">
<td height="260" colspan="2" > <table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
GetEditor("fullinfo",$rowper['fullinfo'],250,"MemberLit");
?> </td>
</tr>
</table> </td>
</tr>
<tr>
<td height="25" align="right" >联系方式: </td>
<td height="25" > <input type="radio" name="showaddr" value="0"<?php if($rowper['showaddr']==0) echo " checked";?>>
不显示
<input type="radio" name="showaddr" value="1"<?php if($rowper['showaddr']==1) echo " checked";?>>
显示</td>
</tr>
<tr>
<td height="25" align="right" >个人主页:</td>
<td height="25" ><input name="homepage" value="<?php echo $rowper['homepage']?>" type="text" id="homepage2" size="25" class="company_manage_form_label" ></td>
</tr>
<tr>
<td height="25" align="right" >OICQ号码:</td>
<td height="25" ><input name="oicq" type="text" value="<?php echo $rowper['oicq']?>" id="oicq" size="20" style="width:150;height:20" class="company_manage_form_label" > </td>
</tr>
<tr>
<td height="25" align="right" >联系电话:</td>
<td height="25" ><input name="tel" type="text" value="<?php echo $rowper['tel']?>" id="tel" size="20" style="width:150;height:20" class="company_manage_form_label" > </td>
</tr>
<tr>
<td height="25" align="right" >详细地址:</td>
<td height="25" ><input name="address" value="<?php echo $rowper['address']?>" type="text" id="address" size="25" class="company_manage_form_label" > </td>
</tr>
<tr>
<td height="67" align="right" > </td>
<td height="67" > <input type="submit" name="Submit2" value="确定修改" class="button">
<input type="reset" name="Submit222" value="重置" class="button01"> </td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/edit_info.htm | HTML | asf20 | 9,708 |
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" class="toplinespace">
<tr>
<td width="270" height="24">
<a href="index.php"><u>管理中心</u></a>
</td>
<td width="500" align="center" background="img/ttbg.gif">
<a href="index.php?uid=<?php echo $uid?>">我的空间</a>
| <a href="member_archives.php?uid=<?php echo $uid?>&channelid=1">我的文章</a>
<?php if($cfg_mb_album=='是'){ ?>
| <a href="member_archives.php?uid=<?php echo $uid?>&channelid=2">我的图集</a>
<?php } ?>
| <a href="index.php?uid=<?php echo $uid?>&action=memberinfo">我的档案</a>
| <a href="index.php?uid=<?php echo $uid?>&action=feedback">给我留言</a>
| <a href="search_member.php">搜索会员</a>
</td>
</tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="161" height="59" align="center">
<a href="index.php?uid=<?php echo $uid?>"><img src="img/memberspace.gif" width="134" height="37" border="0"></a>
</td>
<td width="609"><h1 class='spacetitle'><?php echo $spacename?></h1></td>
</tr>
</table> | zyyhong | trunk/jiaju001/news/member/templets/space/com_head.htm | HTML | asf20 | 1,203 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><?php echo $uname?>发布的所有主题</li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" >
<tr>
<td width="7%" height="30" align="center" bgcolor="#FDFEE9">点击</td>
<td width="8%" height="30" align="center" bgcolor="#FDFEE9">回复</td>
<td width="54%" height="30" align="center" bgcolor="#FDFEE9">标题</td>
<td width="16%" height="30" align="center" bgcolor="#FDFEE9">最后更新</td>
<td width="15%" height="30" align="center" bgcolor="#FDFEE9">最后回复</td>
</tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$subject = $row['subject'];
$titleleft = "";
if($row['digest']) $titleleft .= "<span style='color:red;'>[精]</span>";
if($row['closed']) $subject = "<s>".$subject."</s>";
$subject = $titleleft.$subject;
?>
<tr>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['views']?></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['replies']?></td>
<td height="28" align="left" bgcolor="#FFFFFF" class="space_viewthread_title"><a href="../group/viewthread.php?id=<?php echo $row['gid'];?>&tid=<?php echo $row['tid'];?>" title="<?php echo $row['subject'];?>" target="_blank"><?php echo $subject?></a></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo GetDateMk($row['lastpost'])?></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['lastposter']?></td>
</tr>
<?php
}
?>
</table>
<div class="space_news_text"> <?php echo $dlist->GetPageList(7);?></div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_threads.htm | HTML | asf20 | 3,606 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title><?php echo $spacename?></title>
<link href="newskin.css" rel="stylesheet" type="text/css">
<link href="../base.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/com_head.htm"); ?>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="170" height="216" valign="top">
<?php include(dirname(__FILE__)."/com_menu.php");?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:6px">
<tr align="center">
<td height="22" colspan="2" class="mmt"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px">
<tr>
<td width="28%" height="18" align="right" valign="top"><img src="img/dd/dedeexplode.gif" width="11" height="11" class="ittop"></td>
<td width="72%"><strong>友情链接</strong></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center" class="mma">
<table width="98%" border="0" cellspacing="0" cellpadding="0" style="padding-top:6px">
<?php
$dsql->SetQuery("Select * From #@__member_flink where mid='$userNumID' order by aid desc");
$dsql->Execute();
while($row = $dsql->GetArray())
{
if($row['linktype']==2) $textname = "<img src='{$row['imgurl']}' width='{$row['imgwidth']}' height='{$row['imgheight']}' border='0' alt='{$row['title']}'>";
else $textname = $row['title'];
?>
<tr align="center">
<td height="24" class="mmbb">
<a href='<?php echo $row['url']?>' target='_blank'><?php echo $textname?></a>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="6" class="mmb"> </td>
</tr>
</table> </td>
<td width="10"> </td>
<td width="590" valign="top">
企业介绍<br>
产品展示<br>
联系方式<br>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:6px">
<tr>
<td height='24' background="img/tbg2.gif"><font color="#666600"><b>【空间公告】</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="63" colspan="2">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="63">
<?php echo $news?>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:6px">
<tr>
<td colspan="2" background="img/tbg2.gif" bgcolor="#EEF4EA"><font color="#666600"><b>【最新文档】</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="63" colspan="2"> <table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="219" valign="top">
<?php
$squery = "
Select arc.*,tp.typename From `#@__full_search` arc left join #@__arctype tp on arc.typeid=tp.ID
where arc.mid='$userNumID' order by arc.uptime desc limit 0,6;
";
$dsql->SetQuery($squery);
$dsql->Execute();
while($row = $dsql->GetArray()){
$row['arcurl'] = $row['siteurl'];
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<table border='0' width='100%'>
<tr height='24'>
<td width='19%' rowspan="2" align="center">
<table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
<tr>
<td bgcolor="#FFFFFF">
<a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
</td>
</tr>
</table>
</td>
<td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
<td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
<td width="24%">点击:<?php echo $row['click']?></td>
</tr>
<tr>
<td height="56" colspan='3'> <?php echo $row['description']?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['uptime'])?>)</font>
</td>
</tr>
<tr>
<td height='2' colspan='4' background='img/writerbg.gif'></td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
<tr>
<td height="20" align="right">
<a href="member_archives.php?uid=<?php echo $uid?>"><< 浏览该用户所有文档 >></a>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?php
$dsql->ExecuteNoneQuery("Update #@__member set spaceshow=spaceshow+1 where ID='$userNumID'; ");
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/com_index.htm | HTML | asf20 | 6,015 |
<!--头部开始-->
<div id="spaceheader">
<div id="space_top">
<div style="float:left;">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="toplinespace">
<tr>
<td height="24" align="right">
<a href="index.php?uid=<?php echo $uid?>">我的空间</a>
| <a href="member_archives.php?uid=<?php echo $uid?>&channelid=1">我的文章</a>
<?php if($cfg_mb_album=='是'){ ?>
| <a href="member_archives.php?uid=<?php echo $uid?>&channelid=2">我的图集</a>
<?php } ?>
| <a href="index.php?uid=<?php echo $uid?>&action=memberinfo">我的档案</a>
| <a href="index.php?uid=<?php echo $uid?>&action=feedback">给我留言</a>
| <a href="search_member.php">搜索会员</a> </td>
</tr>
</table>
</div>
</div>
</div>
<!--头部结束-->
| zyyhong | trunk/jiaju001/news/member/templets/space/member_head.htm | HTML | asf20 | 1,004 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><font color="#666600"><b>【用户档案】</b></font></li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td height="25" colspan="2" ><strong>>>基本资料:</strong></td>
</tr>
<tr>
<td width="17%" height="25" align="right" >昵 称:</td>
<td width="83%">
<?php echo $spaceInfos['uname']?>
</td>
</tr>
<tr>
<td height="25" align="right" >性 别:</td>
<td>
<?php echo $spaceInfos['sex']?>
</td>
</tr>
<tr>
<td height="25" align="right" >生 日:</td>
<td>
<?php echo $spaceInfos['birthday']?>
</td>
</tr>
<tr>
<td height="25" align="right" >体 型:</td>
<td>
<?php echo $spaceInfos['weight']?>
身高:
<?php echo $spaceInfos['height']?>
厘米 </td>
</tr>
<tr>
<td height="25" align="right" >职 业:</td>
<td>
<?php echo $spaceInfos['job']?>
</td>
</tr>
<tr>
<td height="25" align="right" >地 区:</td>
<td>
省:<?php echo GetProvince($spaceInfos['province'],$dsql);?> 市区:<?php echo GetProvince($spaceInfos['city'],$dsql);?>
</td>
</tr>
<tr>
<td height="25" align="right" >个人说明:</td>
<td>
<?php echo str_replace("\n","<br />",html2text($spaceInfos['myinfo']))?>
</td>
</tr>
<tr>
<td height="25" align="right" >详细介绍:</td>
<td>
<?php echo str_replace("\n","<br />",html2text($spaceInfos['fullinfo']))?>
</td>
</tr>
<tr>
<td height="25" colspan="2" ><strong>>>空间信息:</strong></td>
</tr>
<tr>
<td height="25" colspan="2" > <table width="96%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF">
<td width="21%"> 发表的文章:</td>
<td width="27%">
<?php echo $spaceInfos['c1']?>
</td>
<td width="18%"> 发表的图集:</td>
<td width="34%">
<?php echo $spaceInfos['c2']?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td> 其它信息:</td>
<td>
<?php echo $spaceInfos['c3']?>
</td>
<td> 空间访问量:</td>
<td>
<?php echo $spaceInfos['spaceshow']?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" colspan="2" ><strong>>>最新公告:</strong></td>
</tr>
<tr>
<td height="25" colspan="2" >
<?php echo $spaceInfos['news']?>
</td>
</tr>
<tr>
<td height="25" colspan="2" ><strong>>>联系方法:</strong></td>
</tr>
<?php
if($spaceInfos['showaddr']==1){
?>
<tr>
<td height="25" align="right" >个人主页:</td>
<td>
<?php echo $spaceInfos['homepage']?>
</td>
</tr>
<tr>
<td height="25" align="right" >电子邮箱: </td>
<td> </td>
</tr>
<tr>
<td height="25" align="right" >OICQ号码:</td>
<td>
<?php echo $spaceInfos['oicq']?>
</td>
</tr>
<tr>
<td height="25" align="right" >联系电话:</td>
<td>
<?php echo $spaceInfos['tel']?>
</td>
</tr>
<tr>
<td height="25" align="right" >详细地址:</td>
<td>
<?php echo $spaceInfos['address']?>
</td>
</tr>
<?php
}
else{
?>
<tr>
<td height="25" colspan="2"> <font color='red'>该用户隐藏了联系方式,请在线与她联系!</font>
</td>
</tr>
<?php
}
?>
<tr>
<td height="86" align="center" > </td>
<td height="86" ><a href="index.php?uid=<?php echo $uid?>&action=feedback"><img src="img/feedback.gif" width="115" height="34" border="0"></a></td>
</tr>
</table>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html> | zyyhong | trunk/jiaju001/news/member/templets/space/member_info.htm | HTML | asf20 | 7,541 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><?php echo $uname?> 的分类信息</li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" >
<tr>
<td height="30" align="center" bgcolor="#FDFEE9">标题</td>
<td width="20%" height="30" align="center" bgcolor="#FDFEE9">发布时间</td>
<td width="15%" height="30" align="center" bgcolor="#FDFEE9">有效期(天)</td>
</tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['mjj'] = @ceil(($row['endtime'] - $row['senddate'])/86400);
$row['senddate'] = GetDateMk($row['senddate']);
?>
<tr>
<td height="28" align="center" bgcolor="#FFFFFF"><a href="../plus/view.php?aid=<?php echo $row['ID'];?>&tid=<?php echo $row['typeid']?>" title="<?php echo $row['title'];?>" target="_blank"><?php echo $row['title']?></a></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['senddate']?></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['mjj']?>天</td>
</tr>
<?php
}
?>
</table>
<div class="space_news_text"> <?php echo $dlist->GetPageList(7);?></div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_infos.htm | HTML | asf20 | 2,874 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><?php echo $uname?>创建的圈子</li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center">
<!--分页-->
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$icon = $row['groupimg'];
if(!$icon) $icon = "img/dfpic.gif";
?>
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#def0ff';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td width="120" height="100">
<div>
<img src="<?php echo $icon?>" align="absmiddle" /> </div>
<div>
<a href="../group/group.php?id=<?php echo $row['groupid']?>" style="font-size:15px;color:#005294;" target="_blank"><?php echo $row['groupname']?></a>
</div>
</td>
<td height="100" align="left" valign="top" class="space_group_des">
<p>
<?php if($row['isindex']) echo "[<font color='red'>荐</font>]";?> <?php echo $row['des']?>
</p>
<div style="float:left;margin-top:3px;margin-left:5px;">会员:<?php echo $row['members'];?> 贴子:<?php echo $row['threads'];?> 浏览:<?php echo $row['hits'];?> 创建时间:<?php echo GetDateMk($row['stime'])?></div>
<div style="float:right;margin-top:3px;"><span><a href="../group/reg.php?id=<?php echo $row['groupid']?>">加入圈子</a></span></div>
</td>
</tr>
<?php
} ?>
</table>
<div class="space_news_text"> <?php echo $dlist->GetPageList(7);?>
</div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_group.htm | HTML | asf20 | 3,479 |
公司首页<br>
公司介绍<br>
产品展示<br>
商业机会<br>
联系方式<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:6px">
<tr align="center">
<td height="26" colspan="2" background="img/mmbg.gif" class="mmt1m">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px">
<tr>
<td width="28%" height="24" align="right" valign="top" style="padding-top:3px"><img src="img/dd/dedeexplode.gif" width="11" height="11" class="ittop"></td>
<td width="72%"><strong>个人基本信息</strong></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="50" colspan="2" align="center" bgcolor="#FFFFFF" class="mma">
<table width="98%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="center"> <a href="index.php?uid=<?php echo $uid?>"><img name="myface" src="<?php echo $spaceimage?>" width="150" height="110" border="0"></a>
</td>
</tr>
<tr>
<td align="center" bgcolor="#F8FEE0" class="mmbb"> 昵称:
<?php echo $uname?>
<a href="index.php?uid=<?php echo $uid?>&action=memberinfo">档案</a>
</td>
</tr>
<tr>
<td align="center" bgcolor="#F8FEE0" class="mmbb"> 最后在线:
<?php echo strftime("%y-%m-%d %H:%M",$logintime)?>
</td>
</tr>
<tr>
<td align="center" bgcolor="#F8FEE0" class="mmbb">
文章[<a href="member_archives.php?uid=<?php echo $uid?>&channelid=1"><?php echo $c1?></a>]
图集[<a href="member_archives.php?uid=<?php echo $uid?>&channelid=2"><?php echo $c2?></a>]
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="6" class="mmb"> </td>
</tr>
</table>
<?php
if(empty($notarchives)){
?>
<!-- //文章 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:6px">
<tr align="center">
<td height="22" colspan="2" class="mmt">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px">
<tr>
<td width="28%" height="18" align="right" valign="top"><img src="img/dd/dedeexplode.gif" width="11" height="11" class="ittop"></td>
<td width="72%"><strong>文档分类</strong></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center" class="mma">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<?php
if(!isset($dsql) || !is_object($dsql)){
$dsql = new DedeSql(false);
}
$addQuery = "";
if(!empty($channelid)){
$channelid = ereg_replace("[^0-9]","",$channelid);
$addQuery = " And channelid='$channelid' ";
}
$userNumID = ereg_replace("[^0-9]","",$userNumID);
$dsql->SetQuery("Select * From #@__member_arctype where memberid='$userNumID' $addQuery order by rank desc; ");
$dsql->Execute();
while($menurow = $dsql->GetArray())
{
if($menurow['channelid']==1) $tf = '<img src="img/dd/exe.gif" width="16" height="16">';
else $tf='<img src="img/dd/image.gif" width="16" height="16">';
?>
<tr>
<td align="right" class="mmbb" height="24" width="30%" style="padding-right:6px"><?php echo $tf?></td>
<td class="mmbb">
<a href='member_archives.php?uid=<?php echo $uid?>&channelid=<?php echo $menurow['channelid']?>&mtype=<?php echo $menurow['aid']?>'><?php echo $menurow['typename']?></a>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="6" class="mmb"> </td>
</tr>
</table>
<?php
}else{
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:6px">
<tr align="center">
<td height="22" colspan="2" class="mmt1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:2px">
<tr>
<td width="28%" height="18" align="right" valign="top"><img src="img/dd/dedeexplode.gif" width="11" height="11" class="ittop"></td>
<td width="72%"><strong>文档分类</strong></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center" class="mma">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" class="mmbb" height="24" width="30%" style="padding-right:6px">
<img src="img/dd/exe.gif" width="16" height="16">
</td>
<td class="mmbb">
<a href='member_archives.php?uid=<?php echo $uid?>&channelid=1'>我的文章</a>
</td>
</tr>
<?php if($cfg_mb_album=='Y'){ ?>
<tr>
<td align="right" class="mmbb" height="24" width="30%" style="padding-right:6px">
<img src="img/dd/image.gif" width="16" height="16">
</td>
<td class="mmbb">
<a href='member_archives.php?uid=<?php echo $uid?>&channelid=2'>我的图集</a>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="6" class="mmb"> </td>
</tr>
</table>
<?php
}
?>
| zyyhong | trunk/jiaju001/news/member/templets/space/com_menu.php | PHP | asf20 | 4,656 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice"><!--空间公告-->
<div class="space_title02">
<ul>
<li><?php echo $listName?></li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="219" valign="top">
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = $row['url'];
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
$row['description'] = $row['addinfos'];
?>
<table border='0' width='100%'>
<tr height='24'>
<td width='19%' rowspan="2" align="center">
<table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
<tr>
<td bgcolor="#FFFFFF">
<a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
</td>
</tr>
</table>
</td>
<td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
<td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
<td width="24%">点击:<?php echo $row['click']?></td>
</tr>
<tr>
<td height="56" colspan='3'> <?php echo $row['description']; ?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['uptime'])?>)</font>
</td>
</tr>
<tr>
<td height='2' colspan='4' background='img/writerbg.gif'></td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
</table>
<div class="space_news_text"><?php echo $dlist->GetPageList(7);?></div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html> | zyyhong | trunk/jiaju001/news/member/templets/space/member_archives.htm | HTML | asf20 | 3,621 |
<?php
$userNumID = ereg_replace("[^0-9]","",$userNumID);
?>
<div id="space_left"><!--左边开始-->
<div class="space_form"><!--个人信息-->
<div class="space_title">
<ul>
<li>个人基本信息</li>
</ul>
</div>
<div class="space_text">
<div class="space_info_img"><a href="index.php?uid=<?php echo $uid?>"><img name="myface" src="<?php echo $spaceimage?>" border="0"></a>
</div>
<div class="space_text_font">
<dl>
<dd class="space_name">昵称:<?php echo $uname?></dd>
<dd class="space_dangan"><a href="index.php?uid=<?php echo $uid?>&action=memberinfo">我的档案</a></dd>
</dl>
<dl><dd><div style="float:left;">等级:</div><div class="space_star_<?php echo $space_star;?>" title="积分:<?php echo $scores;?>"></div> <?php echo $honor;?></dd></dl>
<dl class="clear">
<dd>最后在线: <?php echo strftime("%y-%m-%d %H:%M",$logintime)?></dd>
</dl>
<dl>
<dd class="space_article"><a href="control.php">控制面板</a></dd>
<dd class="space_photo"><a href="pm.php?action=send&vwriter=<?php echo $uid;?>">短信息</a></dd>
<dd class="space_friend"><img src="images/space/add_friend.gif" align="absmiddle" title="加为好友" /> <a href="my_friends.php?uid=<?php echo $userNumID;?>&action=add" title="加为好友">好友</a></dd>
</dl>
<div class="clear">
</div>
</div>
</div>
</div>
<div class="space_form"><!--文档分类-->
<div class="space_files">
<ul>
<li>文档分类</li>
</ul>
</div>
<div class="space_text">
<div class="space_text_font">
<ul>
<li><a href="member_archives.php?uid=<?php echo $uid?>&channelid=1">我的文章[<?php echo $c1?>]</a></li>
<li><a href="member_archives.php?uid=<?php echo $uid?>&channelid=2">我的图集[<?php echo $c2?>]</a></li>
<li><a href="index.php?id=<?php echo $userNumID?>&action=group">我的圈子</a></li>
<li><a href="index.php?id=<?php echo $userNumID?>&action=threads">我的帖子</a></li>
<li><a href="index.php?id=<?php echo $userNumID?>&action=ask">我的问答</a></li>
<li><a href="index.php?id=<?php echo $userNumID?>&action=info">我的分类</a></li>
<?php
if(!isset($dsql) || !is_object($dsql)){
$dsql = new DedeSql(false);
}
$addQuery = "";
if(!empty($channelid)){
$channelid = ereg_replace("[^0-9]","",$channelid);
$addQuery = " And channelid='$channelid' ";
}
$userNumID = ereg_replace("[^0-9]","",$userNumID);
$dsql->SetQuery("Select * From #@__member_arctype where memberid='$userNumID' $addQuery order by rank desc; ");
$dsql->Execute();
while($menurow = $dsql->GetArray())
{
?>
<li><a href='member_archives.php?uid=<?php echo $uid?>&channelid=<?php echo $menurow['channelid']?>&mtype=<?php echo $menurow['aid']?>'><?php echo $menurow['typename']?></a></li>
<?php
}
?>
</ul>
<div class="clear">
</div>
</div>
</div>
</div>
<div class="space_form"><!--友情链接-->
<div class="space_link">
<ul>
<li>友情链接</li>
</ul>
</div>
<div class="space_text">
<div class="space_link_font">
<ul>
<?php
$dsql->SetQuery("Select * From #@__member_flink where mid='$userNumID' order by aid desc");
$dsql->Execute();
while($row = $dsql->GetArray())
{
if($row['linktype']==2) $textname = "<img src='{$row['imgurl']}' width='{$row['imgwidth']}' height='{$row['imgheight']}' border='0' alt='{$row['title']}'>";
else $textname = $row['title'];
?>
<li><a href='<?php echo $row['url']?>' target='_blank'><?php echo $textname?></a></li>
<?php } ?>
</ul>
<div class="clear">
</div>
</div>
</div>
</div>
</div> | zyyhong | trunk/jiaju001/news/member/templets/space/member_left.htm | HTML | asf20 | 5,846 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><?php echo $uname?> 的提问</li>
</ul>
</div>
<div class="space_notice_text">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" >
<tr>
<td width="54%" height="30" align="center" bgcolor="#FDFEE9">问题</td>
<td width="8%" height="30" align="center" bgcolor="#FDFEE9">悬赏</td>
<td width="11%" height="30" align="center" bgcolor="#FDFEE9">回答数</td>
<td width="11%" height="30" align="center" bgcolor="#FDFEE9">问题状态</td>
<td width="16%" height="30" align="center" bgcolor="#FDFEE9">提问时间</td>
</tr>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['dateline'] = GetDateMk($row['dateline']);
if($row['status'] == 1){
$row['dbstatus'] = 1;
$row['status'] = '已解决';
}elseif($row['expiredtime'] < $timestamp) {
$row['dbstatus'] = 3;
$row['status'] = '已过期';
}elseif($row['status'] == 2) {
$row['dbstatus'] = 2;
$row['status'] = '已结束';
}else{
$row['dbstatus'] = 0;
$row['status'] = '未解决';
}
?>
<tr>
<td height="28" align="center" bgcolor="#FFFFFF"><a href="../ask/question.php?id=<?php echo $row['id'];?>" title="<?php echo $row['title'];?>" target="_blank"><?php echo $row['title']?></a></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['reward']?></td>
<td height="28" align="left" bgcolor="#FFFFFF" class="space_viewthread_title"><?php echo $row['replies']?></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['status']?></td>
<td height="28" align="center" bgcolor="#FFFFFF"><?php echo $row['dateline']?></td>
</tr>
<?php
}
?>
</table>
<div class="space_news_text"> <?php echo $dlist->GetPageList(7);?></div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_asks.htm | HTML | asf20 | 3,632 |
<div class="space_footer">
<div class="space_footer_bg"><?php echo str_replace("<br>","",$cfg_powerby)?>
</div>
</div>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
?>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_footer.htm | HTML | asf20 | 210 |
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px">
<tr>
<td height="12" align="center" bgcolor="#F9F9F9"><hr size="1" style="color:#D6DACF"></td>
</tr>
<tr>
<td height="30" align="center">
<?php echo $cfg_powerby?>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
?>
| zyyhong | trunk/jiaju001/news/member/templets/space/foot.htm | HTML | asf20 | 390 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice"><!--空间公告-->
<div class="space_title01">
<ul>
<li>空间公告</li>
</ul>
</div>
<div class="space_notice_text"><?php echo $news?>
</div>
</div>
<div class="space_notice"><!--空间公告-->
<div class="space_title02">
<ul>
<li>最新文档</li>
</ul>
</div>
<div class="space_notice_text">
<?php
$squery = "
Select arc.*,tp.typedir,tp.typename
From `#@__full_search` arc left join #@__arctype tp on tp.ID = arc.typeid
where arc.mid='$userNumID' order by arc.aid desc limit 0,6;
";
$dsql->SetQuery($squery);
$dsql->Execute();
while($row = $dsql->GetArray()){
$row['arcurl'] = $row['url'];
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<dl>
<dd class="space_biaoti"><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a> </dd>
<dd class="space_dianji">点击:<?php echo $row['click']?></dd>
<dd class="clear">
</dd>
</dl>
<?php
}
?>
<div class="space_news_text"><a href="member_archives.php?uid=<?php echo $uid?>"><< 浏览该用户所有文档 >></a>
</div>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/space/member_index.htm | HTML | asf20 | 3,307 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/space.css" rel="stylesheet" type="text/css" />
<title><?php echo $spacename?></title>
</head>
<body>
<div id="container">
<!--头部开始-->
<?php include(dirname(__FILE__)."/member_head.htm");?>
<!--头部结束-->
<!--中间开始-->
<div id="spacemain">
<div id="space_main">
<?php include(dirname(__FILE__)."/member_left.htm");?>
<!--左边结束-->
<div id="space_right"><!--右边开始-->
<div class="space_notice">
<div class="space_title02">
<ul>
<li><font color="#666600"><b>【给用户留言】</b></font></li>
</ul>
</div>
<div class="space_notice_text">
<form action="member_guestbook_action.php" name="form1" method="post">
<input type="hidden" name="uidnum" value="<?php echo $userNumID?>">
<input type="hidden" name="uid" value="<?php echo $uid?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18%" height="26">验证码:</td>
<td width="82%" align="left">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" align="left"><input name="vdcode" type="text" id="vdcode2" size="10"></td>
<td width="80%"><img src='../include/vdimgck.php' width='50' height='20'></td>
</tr>
</table></td>
</tr>
<tr>
<td height="26">留言标题:</td>
<td><input name="title" type="text" id="title"></td>
</tr>
<tr>
<td height="26">留言内容:</td>
<td> </td>
</tr>
<tr>
<td height="130" colspan="2" align="center">
<textarea name="msg" id="msg" style="width:90%;height:120px"></textarea>
</td>
</tr>
<tr>
<td height="26" colspan="2"><strong>>>联系方法:</strong></td>
</tr>
<tr>
<td height="26">你的昵称:</td>
<td><input name="uname" type="text" id="uname" value="<?php if(isset($cfg_ml->M_UserName) && $cfg_ml->M_UserName!="") echo $cfg_ml->M_UserName; ?>"></td>
</tr>
<tr>
<td height="26">电子邮箱:</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td height="26">即时通信软件:</td>
<td><input name="qq" type="text" id="qq">
(注明QQ或MSN等)</td>
</tr>
<tr>
<td height="26">联系电话:</td>
<td><input name="tel" type="text" id="tel"></td>
</tr>
<tr align="center">
<td height="68" colspan="2"><table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%" align="center">
<input name="imageField" type="image" src="img/button_ok.gif" width="60" height="22" border="0">
</td>
<td width="73%"><img src="img/button_reset.gif" width="60" height="22"></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</div>
</div><!--右边结束-->
<div class="clear">
</div>
</div>
</div>
<!--中间结束-->
<!--底部开始-->
<?php include(dirname(__FILE__)."/member_footer.htm");?>
<!--底部结束-->
</div>
</body>
</html> | zyyhong | trunk/jiaju001/news/member/templets/space/member_guestbook_form.htm | HTML | asf20 | 4,863 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文档管理</title>
<link href="company_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<div id="container">
<!-- 头部开始 -->
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<!-- 中部开始 -->
<div id="manage_company_main">
<!-- 中部左边开始 -->
<?php include(dirname(__FILE__)."/commenu.php");?>
<!-- 中部右边开始 -->
<div id="manage_company_right">
<div id="manage_company_info">
<div class="manage_company_info_title_bg">
<ul>
<li>发布招聘</li>
</ul>
</div>
<div class="addjob_form" style="line-height:30px;">
<form name="form1" action="addjob.php" method="post">
<input type=hidden name=step value="2">
公司名称:<input type=text name=name value="<?php echo $comname;?>" class="company_manage_form_label"><br />
职位名称:<input type=text name=job value="" class="company_manage_form_label"><br />
招聘人数:<input type=text name=nums value="" class="company_manage_form_label"><br />
招聘部门:<input type=text name=department value="" class="company_manage_form_label"><br />
工作地址:<input type=text name=address value="" class="company_manage_form_label"><br />
有 效 期:<input type=text name=endtime value="30" class="company_manage_form_label">天,自发布日期开始算起<br />
薪酬范围:<input type=text name=salaries value="0" class="company_manage_form_label">只能填写数字,0为薪酬面议<br />
<div style="border-top:1px dotted #dedede; margin-top:10px;">
职位描述:</div>
<?php
GetEditor("message","",350,"MemberLit");
?><br />
<div style="padding-bottom:30px;">
<input type=submit name=submit value="提交" class="button" />
</form>
</div>
</div>
<div class="clear">
</div>
</div>
</div>
<div class="clear">
</div>
</div>
<?php include(dirname(__FILE__)."/foot.htm"); ?>
</div>
</center>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/addjob.htm | HTML | asf20 | 2,515 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>更改企业用户登录密码</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script>
function checkSubmit()
{
if(document.form2.userpwdok.value!=document.form2.userpwd.value)
{
document.form2.userpwdok.focus();
alert("两次密码不一致!");
return false;
}
if(document.form2.vdcode.value=="")
{
document.form2.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<div id="manage_company_right">
<div id="manage_company_info">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px">
<tr>
<td height="25" align="left" background="images/right_titlebg.gif" class="gdt2">
<strong> 更改登录密码:</strong> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainbody">
<form name="form2" action="index_do.php" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="fmdo" value="user" />
<input type="hidden" name="dopost" value="editUserSafe" />
<tr>
<td height="36" align="center" >验证码:</td>
<td height="25" align="left" ><table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="164" ><input name="vdcode" type="text" id="vdcode" size="10" class="company_manage_form_label" ></td>
<td width="442" ><img src='../include/vdimgck.php' width='50' height='20'></td>
</tr>
</table></td>
</tr>
<tr>
<td width="17%" height="36" align="center" >原登录密码:</td>
<td width="83%" height="25" align="left" ><input type="password" name="oldpwd" class="company_manage_form_label" ></td>
</tr>
<tr>
<td height="36" align="center" >新 密 码:</td>
<td height="25" align="left" ><input name="userpwd" type="password" id="userpwd" size="18" class="company_manage_form_label" >
确认密码:
<input name="userpwdok" type="password" id="userpwdok" value="" size="18" class="company_manage_form_label" >
</td>
</tr>
<tr>
<td height="67" align="right" > </td>
<td align="left" > <input type="submit" name="Submit2" value="确定修改" class="button" >
<input type="reset" name="Submit222" value="重置" class="button01" ></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" height="40" ><tr><td></td></tr></table>
<div class="clear">
</div>
</div>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/com_edit_pwd.htm | HTML | asf20 | 3,634 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>确认订单</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php"); ?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
<tr>
<td width="100%" height="103" colspan="2"><img src="img/indbanner.jpg" width="580" height="100"></td>
</tr>
<tr>
<td height="140" colspan="2">
<form name='f1' action='buy_action_pay.php' method='post'>
<input type='hidden' name='buyid' value='<?php echo $buyid?>'>
<table width="98%" border="0" cellpadding="3" cellspacing="0" style="margin-top:5px; border-bottom:1px solid #ababab">
<tr bgcolor="#F2FCE0">
<div class="manage_company_right_title" style="margin-top:10px;">
<ul><li>请确认你的订单:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" style="margin-bottom:8px">
<tr>
<td bgcolor="#FFFFFF">
<div style="line-height:200%;border-bottom:1px solid #cdcdcd;margin-bottom:8px">
<img src="img/okico.gif" width="30" height="30">你成功发送购买如下产品的申请,请等待管理员处理:
</div>
<div style="line-height:250%;color:red;margin-left:24px;margin-bottom:8px">
订单编号:<?php echo $buyid?><br>
产品类型:<?php echo $ptype?><br>
产品名称:<?php echo $pname?><br>
产品价格:<?php echo $price?> 元<br>
</div>
<div style="height:30px;text-align:center;padding-top:10px;margin-bottom:8px;border-top:1px solid #cdcdcd">
<a href="javascript:location='buy.php';"><img src="img/buysbbk.gif" width="85" height="20" border="0"></a>
</div>
</td>
</tr>
</table>
</form>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/buy_action_none.htm | HTML | asf20 | 2,990 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>管理我的分类</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript'src='main.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript">
<!--
//增加类目
function AddnewType(){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename').value;
var rank = $Obj('rank').value;
var channelid = 1;
if(typename==''){
alert("类目名称不能为空!");
return false;
}
if($Obj('channelid02')){
if($Obj('channelid02').checked) channelid = 2;
}
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("com_archives_type_action.php?dopost=addnew&typename="+typename+"&channelid="+channelid+"&rank="+rank);
$Obj('rank').value++;
$Obj('typename').value = "";
}
//更新类目
function UpdateType(tid){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename'+tid).value;
var rank = $Obj('rank'+tid).value;
if(typename==''){
alert("类目名称不能为空!");
return false;
}
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"-",errMsg,"正在处理...");
myajax.SendGet("com_archives_type_action.php?dopost=update&aid="+tid+"&typename="+typename+"&rank="+rank);
}
//删除类目
function DelType(tid){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename'+tid).value;
if(!window.confirm('你确定要删除分类:'+typename+' 吗?')){ return false; }
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("com_archives_type_action.php?dopost=del&aid="+tid);
}
//重载类目
function ReLoadList(orderby){
var taget_obj = $Obj('typeList');
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在加载中...");
myajax.SendGet("com_archives_type_action.php?dopost=reload&orderby="+orderby);
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="299" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:5px;">
<tr>
<div class="manage_company_right_title" style="margin-top:10px;">
<ul><li>管理我的分类:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D9EDC0">
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" align="left" style="padding-left:6px;">增加新的分类:</td>
</tr>
<tr>
<td width="20%" height="30" align="center" bgcolor="#FFFFFF" style="padding-left:6px;">分类名称:</td>
<td width="80%" height="30" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="typename" type="text" id="typename" style="width:150px" class="jifenlabel" /> </td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#FFFFFF" style="padding-left:6px;">内容类型:</td>
<td height="30" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="channelid" id="channelid01" type="radio" value="1" checked>
文章
<?php if($cfg_mb_album=='是'){ ?>
<input type="radio" id="channelid02" name="channelid" value="2">
图集
<?php } ?> </td>
</tr>
<tr>
<td height="30" align="center" valign="middle" bgcolor="#FFFFFF" style="padding-left:6px;">排序级别:</td>
<td height="30" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="rank" type="text" id="rank" style="width:80px" value="<?php echo $nrank?>" class="jifenlabel" />
<input type="button" name="bt" value="增加" style="width:50px" onClick="AddnewType()" /> </td>
</tr>
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" align="left" style="padding-left:6px;">已有分类管理: </td>
</tr>
<tr>
<td id="typeList" height="380" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding-left:6px;padding-top:6px">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" style="margin-bottom:10px;">
<tr align="center" bgcolor="#FBFCD1">
<td width="11%" height="25">ID</td>
<td width="32%">分类名称</td>
<td width="15%" style="color:#000;"><a href='javascript:ReLoadList(1)'><u>内容类型</u></a></td>
<td width="18%"><a href='javascript:ReLoadList(0)'><u>排序级别</u></a></td>
<td>操作</td>
</tr>
<?php
$dsql->SetQuery("Select * From #@__member_arctype where memberid='".$cfg_ml->M_ID."' order by rank desc");
$dsql->Execute();
while($row = $dsql->GetObject()){
if($row->channelid==1){ $cktype = " 文章 "; }
else{ $cktype = " <font color='#3C9636'>图集<font> "; }
echo "<tr align='center' bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#EFEFEF';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">\r\n";
echo "<td height=\"30\">{$row->aid}</td>\r\n";
echo "<td><input name='typename{$row->aid}' type='text' id='typename{$row->aid}' style='width:150px' value='{$row->typename}' class=\"jifenlabel\" /></td>\r\n";
echo "<td>{$cktype}</td>\r\n";
echo "<td><input name='rank{$row->aid}' type='text' id='rank{$row->aid}' style='width:60px' value='{$row->rank}' class=\"jifenlabel\" /></td>\r\n";
echo "<td>[<a href='#' onclick='UpdateType({$row->aid})'>更新</a>][<a href='#' OnClick='DelType({$row->aid})'>删除</a>]</td>\r\n</tr>\r\n";
}
?>
</table></td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/com_archives_type.htm | HTML | asf20 | 6,971 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>友情链接管理</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript'src='main.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript">
<!--
//增加链接
function AddnewLink(){
var taget_obj = $Obj('linkList');
var linktype,getquery;
if($Obj('linktype1').checked) linktype = 1;
else linktype = 2;
getquery = "&linktype="+linktype;
if($Obj('title').value==''){
alert('链接标题不能为空!');
return false;
}
getquery += "&title="+$Obj('title').value;
if($Obj('url').value==''){
alert('链接网址不能为空!');
return false;
}
getquery += "&url="+$Obj('url').value;
if(linktype==2){
if($Obj('imgurl').value==''){
alert('你选择的是图片链接,因此图片网址不能为空!');
return false;
}
}
getquery += "&imgurl="+$Obj('imgurl').value+"&imgwidth="+$Obj('imgwidth').value+"&imgheight="+$Obj('imgheight').value;
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("comlink.php?dopost=addnew"+getquery);
}
//更新类目
function UpdateType(tid){
var taget_obj = $Obj('linkList');
var linktype,getquery;
if($Obj('linktype'+tid+'1').checked) linktype = 1;
else linktype = 2;
getquery = "&linktype="+linktype;
if($Obj('title'+tid).value==''){
alert('链接标题不能为空!');
return false;
}
getquery += "&title="+$Obj('title'+tid).value;
if($Obj('url'+tid).value==''){
alert('链接网址不能为空!');
return false;
}
getquery += "&url="+$Obj('url'+tid).value;
if(linktype==2){
if($Obj('imgurl'+tid).value==''){
alert('你选择的是图片链接,因此图片网址不能为空!');
return false;
}
}
getquery += "&imgurl="+$Obj('imgurl'+tid).value+"&imgwidth="+$Obj('imgwidth'+tid).value+"&imgheight="+$Obj('imgheight'+tid).value;
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("comlink.php?dopost=update&aid="+tid+getquery);
}
//删除链接
function DelType(tid){
var taget_obj = $Obj('linkList');
var titlename = $Obj('title'+tid).value;
if(!window.confirm('你确定要删除链接:'+titlename+' 吗?')){ return false; }
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("comlink.php?dopost=del&aid="+tid);
}
//重载类目
function ReLoadList(oby){
var taget_obj = $Obj('typeList');
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在加载中...");
myajax.SendGet("comlink.php?dopost=reload");
}
-->
</script>
<style type="text/css">
.cinput {height:16px;border:1px solid #888; line-height:16px;}
</style>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="299" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:5px;">
<tr>
<div class="manage_company_right_title" style="margin-top:10px;">
<ul><li>友情链接管理:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D9EDC0">
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" align="left" style="padding-left:6px;">增加新的链接:</td>
</tr>
<tr>
<td width="20%" height="30" bgcolor="#FFFFFF" style="padding-left:6px;">链接名称:</td>
<td width="80%" height="22" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="title" type="text" id="title" style="width:150px" class="cinput">
网址:
<input name="url" type="text" id="url" style="width:150px" class="cinput">
</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" style="padding-left:6px;">链接类型:</td>
<td height="22" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="linktype" id="linktype1" type="radio" value="1" checked>
文字
<input type="radio" id="linktype2" name="linktype" value="2">
图片</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" style="padding-left:6px;">图片选项:</td>
<td height="22" align="left" bgcolor="#FFFFFF" style="padding-left:6px;">
地址:
<input name="imgurl" type="text" id="imgurl" style="width:120px" class="cinput">
宽:
<input name="imgwidth" type="text" id="imgwidth" style="width:30px" value="88" class="cinput">
高:
<input name="imgheight" type="text" id="imgheight" style="width:30px" value="31" class="cinput">
<input type="button" name="bt" value="增加" style="width:50px" onClick="AddnewLink()">
</td>
</tr>
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" align="left" style="padding-left:6px;">已有链接管理: </td>
</tr>
<tr>
<td height="380" colspan="2" align="left" valign="top" bgcolor="#FFFFFF" style="padding-left:6px;padding-top:6px">
<span id="linkList"><?php GetLinkList($dsql); ?></span> </td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/comlink.htm | HTML | asf20 | 6,552 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>确认订单并支付</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php"); ?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="103" colspan="2"><img src="img/indbanner.jpg" width="580" height="100"></td>
</tr>
<tr>
<td height="140" colspan="2">
<form name='f1' action='http://www.allbuy.cn/newpayment/payment.asp' method='post'>
<input type="hidden" name="merchant" value="<?php echo $cfg_merchant?>">
<input type="hidden" name="BillNo" value="<?php echo $buyid?>">
<input type="hidden" name="Amount" value="<?php echo $price?>">
<input type="hidden" name="Date" value="<?php echo GetDateMk($mtime)?>">
<input type="hidden" name="Remark" value="<?php echo $cfg_ml->M_ID?>">
<input type="hidden" name="BackUrl" value="<?php echo $cfg_backurl?>">
<table width="98%" border="0" cellpadding="3" cellspacing="0" style="margin-top:3px; margin-bottom:8px; border-bottom:1px solid #ababab">
<tr bgcolor="#F2FCE0">
<div class="manage_company_right_title">
<ul><li>请确认你的订单:</li></ul>
</div>
</tr>
</table>
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" style="margin-bottom:8px">
<tr>
<td bgcolor="#FFFFFF">
<div style="line-height:200%;border-bottom:1px solid #cdcdcd;margin-bottom:8px">
<img src="img/okico.gif" width="30" height="30">你申请购买的产品如下,确认无误后请点击“购买并支付”按钮,进行网上支付,如果支付失败,请与管理员联系其它支付方式:
</div>
<div style="line-height:250%;color:red;margin-left:24px;margin-bottom:8px">
订单编号:<?php echo $buyid?>
<br>
产品类型:<?php echo $ptype?>
<br>
产品名称:<?php echo $pname?>
<br>
产品价格:<?php echo $price?>
元<br>
</div>
<div style="height:30px;text-align:center;padding-top:10px;margin-bottom:8px;border-top:1px solid #cdcdcd">
<input name="imageField" type="image" src="img/buysbok.gif" width="85" height="20" border="0" class="np">
<a href="javascript:location='buy.php';"><img src="img/buysbbk.gif" width="85" height="20" border="0"></a>
</div>
</td>
</tr>
</table>
</form>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/buy_action_allbuy.htm | HTML | asf20 | 3,119 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>管理我的分类</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript'src='main.js'></script>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language="javascript">
<!--
//增加类目
function AddnewType(){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename').value;
var rank = $Obj('rank').value;
var channelid = 1;
if(typename==''){
alert("类目名称不能为空!");
return false;
}
if($Obj('channelid02')){
if($Obj('channelid02').checked) channelid = 2;
}
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("archives_type_action.php?dopost=addnew&typename="+typename+"&channelid="+channelid+"&rank="+rank);
$Obj('rank').value++;
$Obj('typename').value = "";
}
//更新类目
function UpdateType(tid){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename'+tid).value;
var rank = $Obj('rank'+tid).value;
if(typename==''){
alert("类目名称不能为空!");
return false;
}
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"-",errMsg,"正在处理...");
myajax.SendGet("archives_type_action.php?dopost=update&aid="+tid+"&typename="+typename+"&rank="+rank);
}
//删除类目
function DelType(tid){
var taget_obj = $Obj('typeList');
var typename = $Obj('typename'+tid).value;
if(!window.confirm('你确定要删除分类:'+typename+' 吗?')){ return false; }
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在处理...");
myajax.SendGet("archives_type_action.php?dopost=del&aid="+tid);
}
//重载类目
function ReLoadList(orderby){
var taget_obj = $Obj('typeList');
var errMsg = "网络通信出错!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载类目列表</u></a>]";
var myajax = new DedeAjax(taget_obj,true,true,"",errMsg,"正在加载中...");
myajax.SendGet("archives_type_action.php?dopost=reload&orderby="+orderby);
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="299" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px;margin-top:10px;">
<tr>
<div class="manage_company_right_title">
<ul><li>管理我的分类:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D9EDC0" style="text-align:left;">
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" style="padding-left:6px;">增加新的分类:</td>
</tr>
<tr>
<td width="20%" height="30" bgcolor="#FFFFFF" style="padding-left:6px;">分类名称:</td>
<td width="80%" height="30" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="typename" type="text" id="typename" style="width:150px" class="company_manage_form_label">
</td>
</tr>
<tr>
<td height="30" bgcolor="#FFFFFF" style="padding-left:6px;">排序级别:</td>
<td height="30" bgcolor="#FFFFFF" style="padding-left:6px;">
<input name="rank" type="text" id="rank" style="width:80px" value="<?php echo $nrank?>" class="company_manage_form_label">
<input type="button" name="bt" value="增加" style="width:50px" onClick="AddnewType()">
</td>
</tr>
<tr bgcolor="#F2F9E6">
<td height="30" colspan="2" style="padding-left:6px;">已有分类管理: </td>
</tr>
<tr>
<td height="380" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding-left:6px;padding-top:6px">
<span id="typeList">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" style='margin-bottom:10px' class="checkbox">
<tr align="center" bgcolor="#FBFCD1">
<td width="11%" style="height:30px;">ID</td>
<td width="32%">分类名称</td>
<td width="15%"><a href='javascript:ReLoadList(1)'><u>内容类型</u></a></td>
<td width="18%"><a href='javascript:ReLoadList(0)'><u>排序级别</u></a></td>
<td>操作</td>
</tr>
<?php
$dsql->SetQuery("Select * From #@__member_arctype where memberid='".$cfg_ml->M_ID."' order by rank desc");
$dsql->Execute();
while($row = $dsql->GetObject()){
$cktype = " 不限 ";
echo "<tr align='center' bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#EFEFEF';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">\r\n";
echo "<td style=\"height:30px;\">{$row->aid}</td>\r\n";
echo "<td><input name='typename{$row->aid}' type='text' id='typename{$row->aid}' style='width:150px;margin-top:5px;' value='{$row->typename}' class=\"member_booklabel1\" /></td>\r\n";
echo "<td>{$cktype}</td>\r\n";
echo "<td><input name='rank{$row->aid}' type='text' id='rank{$row->aid}' style='width:60px;margin-top:5px;' value='{$row->rank}' class=\"member_booklabel1\" /></td>\r\n";
echo "<td>[<a href='#' onclick='UpdateType({$row->aid})'>更新</a>][<a href='#' OnClick='DelType({$row->aid})'>删除</a>]</td>\r\n</tr>\r\n";
}
?>
</table>
</span>
</td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/archives_type.htm | HTML | asf20 | 6,377 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人空间管理中心</title>
<link href="company_style.css" rel="stylesheet" type="text/css" />
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php"); ?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;text-align:left;" >
<tr>
<td height="140" colspan="2"> <table width="100%" border="0" cellpadding="2" cellspacing="1" style="margin-top:3px; line-height:25px; background-color:#e9f9c3;text-indent:10px;">
<tr bgcolor="#F2FCE0">
<div class="manage_company_right_title">
<ul><li>会员中心信息统计:</li></ul>
</div>
</tr>
<tr bgcolor="#FFFFFF">
<td width="18%" style="height:30px;">空间使用:</td>
<td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="76%"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999" class="turnleft">
<tr>
<td bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCC33" width="<?php echo $ddsize?>%" >
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
<td width="24%"> <?php echo $minfos['totaluse']."/".$cfg_mb_max; ?>
MB</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" >我的主页地址:</td>
<td height="30" colspan="3" class="turnleft">
<?php echo $myurl?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">我发表的文章:</td>
<td width="32%" height="30">
<?php echo $minfos['c1']?> </td>
<td width="17%" height="30">发表的图集:</td>
<td width="33%" height="30">
<?php echo $minfos['c2']?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">发表的其它信息:</td>
<td height="30">
<?php echo $minfos['c3']?> </td>
<td height="30">收到的留言:</td>
<td height="30">
<?php echo $minfos['guestbook']?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">空间主页访问量:</td>
<td height="30">
<?php echo $minfos['spaceshow']?> </td>
<td height="30">文档总点击率:</td>
<td height="30">
<?php echo $minfos['pageshow']?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">我的积分:</td>
<td height="30">
<?php echo $cfg_ml->M_Scores; ?> </td>
<td height="30">会员称号:</td>
<td height="30">
<?php echo $cfg_ml->M_Honor; ?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">许可附件类型:</td>
<td height="30" colspan="3">
<?php echo str_replace("|",",",$cfg_mb_mediatype)?>
(包含图片)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">是否开启图集:</td>
<td height="30">
<?php echo $cfg_mb_album?> </td>
<td height="30">附件大小限制:</td>
<td height="30">
<?php echo $cfg_mb_upload_size?>
KB</td>
</tr>
</table></td>
</tr>
<tr>
<td height="120" colspan="2">
<div class="member_img">
<ul>
<li><a href="../group/"><img src="images/img_group.gif" /></a></li>
<li><a href="index.php?uid=<?php echo $cfg_ml->M_LoginID?>"><img src="images/img_center.gif" /></a></li>
<li><a href="../company/"><img src="images/img_com.gif" /></a></li>
<li><a href="../ask/"><img src="images/img_ask.gif" /></a></li>
</ul>
</div>
</td>
</tr>
<tr>
<td height="30" colspan="2">
<div class="manage_company_right_title">
<ul><li><?php echo $cfg_ml->GetSta($dsql)?></li></ul>
</div> </td>
</tr>
<tr>
<td width="15%" height="40" align="center" bgcolor="#F8F8F5">我要充值:</td>
<td width="85%" height="40" bgcolor="#F8F8F5"><table width="500" border="0" cellspacing="0" cellpadding="0">
<form name="formrank" action="check_card.php" method="post">
<tr>
<td width="62">充值密码:</td>
<td width="120" align="center"> <input name="cardid" type="text" id="cardid" size="18" class="comloginlaber" /> </td>
<td width="56">验证码:</td>
<td width="60" align="center"> <input name="vdcode" type="text" id="vdcode" size="8" class="comloginlaber1" /> </td>
<td width="61"><img src='../include/vdimgck.php' width='50' height='20'></td>
<td width="60"> <input type="submit" name="Submit2" value="提交" class="button01" /> </td>
</tr>
</form>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="82" align="center"><img src="img/ut.gif" width="50" height="50"></td>
<td height="82" class="checkbox turnleft"><a href="buy.php">购买充值卡或会员升级请从这里进>></a></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/control.htm | HTML | asf20 | 7,430 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改信息</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
<?php
echo $areacache;
echo $sectorcache;
?>
function checkSubmit()
{
if(document.form1.title.value==""){
alert("信息标题不能为空!");
document.form1.title.focus();
return false;
}
if(document.form1.typeid.value==0){
alert("信息隶属栏目必须选择!");
return false;
}
if(document.form1.vdcode.value==""){
document.form1.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
-->
</script>
<script language='javascript' src='../include/common.js'></script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="turnleft" style="margin-top:10px">
<tr>
<td background="img/nnnbg.gif" height="25" class="gdt2">
<font color="#333333">
<div class="manage_company_right_title">
<ul>
<li> 修改信息:</li>
</ul>
</div>
</td>
</tr>
<tr>
<form name="form1" action="infoedit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="channelid" value="<?php echo $channelid;?>">
<input type="hidden" name="typeid" value="<?php echo $info['typeid'];?>">
<input type="hidden" name="step" value="2">
<input type="hidden" name="ID" value="<?php echo $aid?>">
<td height="183" valign="top" style="padding-top:3px">
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆常规参数:</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">信息标题:</td>
<td>
<input name="title" type="text" value="<?php echo $info['title']; ?>" id="title" size="30" style="width:60%" class="company_manage_form_label" />
<font color="#FF0000">*</font>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">有效时间:</td>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100">
<input class="company_manage_form_option" value="<?php echo $info['endtime']; ?>" name="endtime" type="text" id="endtime" value="15" style="width:50px" />
天 </td>
<td width="61">小分类:</td>
<td width="110"><select name="smalltypeid" class="company_manage_form_option" style="width:100px">
<option value="0">-不限-</option>
<?php echo $smalltypes;?>
</select></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">所属地区:</td>
<td>
<select name="areaid" style="width:120px" id="areaid" class="company_manage_form_option"
onchange="javascript:selNext(this.document.form1.areaid2,this.value,'subareas')" >
<?php
echo "<option value='{$topselarea['id']}'>{$topselarea['name']}</option>\r\n";
$dsql->SetQuery("Select * From #@__area where reid=0");
$dsql->Execute();
while($area = $dsql->GetArray())
{
echo "<option value='".$area['id']."'>".$area['name']."</option>\r\n";
}
?>
</select>
<select name="areaid2" style="width:120px" id="areaid2" class="company_manage_form_option">
<?php echo "<option value='{$subselarea['id']}'>{$subselarea['name']}</option>\r\n"; ?>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">所属行业:</td>
<td>
<select name="sectorid" id="sectorid" style="width:120px" class="company_manage_form_option"
onchange="javascript:selNext(this.document.form1.sectorid2,this.value,'subsectors')">
<?php
echo "<option value='{$topselsector['id']}'>{$topselsector['name']}</option>\r\n";
$dsql->SetQuery("Select * From #@__sectors where reid=0");
$dsql->Execute();
while($sector = $dsql->GetArray())
{
echo "<option value='".$sector['id']."'>".$sector['name']."</option>\r\n";
}
?>
</select>
<select name="sectorid2" style="width:120px" class="company_manage_form_option" id="sectorid2">
<?php echo "<option value='{$subselsector['id']}'>{$subselsector['name']}</option>\r\n"; ?>
</select>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">标签(TAG):</td>
<td><input name="keywords" value="<?php echo $info['keywords'];?>" type="text" id="keywords" style="width:50%;" value="" class="company_manage_form_label" />
(多个标签(TAG)用空格分开)</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">缩略图:</td>
<td align="left"><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePic($Obj('picview'),$Obj('litpic'),$Obj('picarea'));" class="company_manage_form_label" /></td>
</tr>
<tr id="picarea" style='<?php echo ($info['litpic']!='' ? '' : 'display:none'); ?>'>
<td height="28">预 览:</td>
<td align="left"><img src="<?php echo ($info['litpic']!='' ? $info['litpic'] : "img/pview.gif"); ?>" id="picview" width="150" height="120" /></td>
</tr>
</table></td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield'); ?>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆具体内容:</strong></td>
</tr>
<tr>
<td height="150"><?php GetEditor("body",$addRow['message'],250,"MemberLit");?></td>
</tr>
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top:1px dotted #dedede;">
<tr>
<td height="24" colspan="4" align="left" bgcolor="#F0FBE3" > <strong>◆联系方式:</strong></td>
</tr>
<tr>
<td width="65" height="36" align="center" >联系人:</td>
<td width="250" height="25" align="left"><input type="text" name="contact" value="<?php echo $addRow['contact']; ?>" class="company_manage_form_label" /></td>
<td width="66" height="25" align="center">电话:</td>
<td width="261" height="25"><input type="text" name="phone" value="<?php echo $addRow['phone']; ?>" class="company_manage_form_label" /></td>
</tr>
<tr>
<td width="65" height="36" align="center">传真:</td>
<td height="25"><input type="text" name="fax" value="<?php echo $addRow['fax']; ?>" class="company_manage_form_label" /></td>
<td width="66" height="25" align="center">email:</td>
<td height="25"><input type="text" name="email" value="<?php echo $addRow['email']; ?>" class="company_manage_form_label" /></td>
</tr>
<tr>
<td width="65" height="36" align="center">qq:</td>
<td height="25"><input type="text" name="qq" value="<?php echo $addRow['qq']; ?>" class="company_manage_form_label" /></td>
<td width="66" height="25" align="center">msn:</td>
<td height="25"><input type="text" name="msn" value="<?php echo $addRow['msn'];?>" class="company_manage_form_label" /></td>
</tr>
<tr>
<td width="65" height="36" align="center">地址:</td>
<td height="25" colspan="3">
<input type="text" style="width:450px" name="address" value="<?php echo $addRow['address'];?>" class="company_manage_form_label" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D9EDC0">
<tr bgcolor="#F7FDF0">
<td width="400%" height="45" colspan="4" align="center"> <input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" style="cursor:hand" onClick="location.reload();"> </td>
</tr>
</table></td>
</form>
</tr>
<tr>
<td height="10"></td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/infoedit.htm | HTML | asf20 | 11,100 |
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px">
<tr>
<td height="60" align="center" style='background-image:url(img/fbg.gif);border-top:1px solid #dedede'>
<?php echo $cfg_powerby?>
</td>
</tr>
</table> | zyyhong | trunk/jiaju001/news/member/templets/comfoot.htm | HTML | asf20 | 348 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>更改登录密码</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript'src='area.js'></script>
<script>
function checkSubmit()
{
if(document.form2.userpwdok.value!=document.form2.userpwd.value)
{
document.form2.userpwdok.focus();
alert("两次密码不一致!");
return false;
}
if(document.form2.vdcode.value=="")
{
document.form2.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:5px;">
<tr>
<div class="manage_company_right_title" style="margin-top:10px;">
<ul><li>修改密码:</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="text-align:left; border:1px solid #b1c384;">
<form name="form2" action="index_do.php" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="fmdo" value="user" />
<input type="hidden" name="dopost" value="editUserSafe" />
<tr>
<td height="36" align="right" >验证码:</td>
<td height="25" ><table width="200" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="84" ><input name="vdcode" type="text" id="vdcode" size="10" class="yanzhengma" /></td>
<td width="116" ><img src='../include/vdimgck.php' width='50' height='20'></td>
</tr>
</table></td>
</tr>
<tr>
<td width="17%" height="36" align="right" >原登录密码:</td>
<td width="83%" height="25" ><input type="password" name="oldpwd" style="width:120;height:20" class="company_manage_form_label" /></td>
</tr>
<tr>
<td height="36" align="right" >新 密 码:</td>
<td height="25" ><input name="userpwd" type="password" id="userpwd" size="18" style="width:120;height:20" class="company_manage_form_label" />
确认密码:
<input name="userpwdok" type="password" id="userpwdok" value="" size="18" style="width:120;height:20" class="company_manage_form_label" />
</td>
</tr>
<tr>
<td height="67" align="right" > </td>
<td height="67" > <input type="submit" name="Submit2" value="确定修改" >
<input type="reset" name="Submit222" value="重置" > </td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/edit_pwd.htm | HTML | asf20 | 3,475 |
<div id="joblist">
<ul>
<li>招聘职位:<a href="editjob.php?id=<?php echo $job['id'];?>"><?php echo $job['job'];?></a></li>
<li>招聘人数:<?php echo $job['nums'];?></li>
<li>招聘部门:<?php echo $job['department'];?></li>
<li>工作地区:<?php echo $job['address'];?></li>
<li>发布时间:<?php echo strftime("%Y-%m-%d",$job['pubdate']);?></li>
<li>有效期:<?php echo $job['endtime'];?>天</li>
<li>薪酬范围:<?php echo $job['salaries'];?></li>
<li><input name="ids" type="checkbox" id="ids" value="<?php echo $job['id'];?>">
[<a href="#" onclick="DelNote('<?php echo $job['id'];?>')">删除信息</a>]</li>
</ul>
<div class="clear">
</div>
<br />
</div> | zyyhong | trunk/jiaju001/news/member/templets/job.htm | HTML | asf20 | 698 |
@charset "gbk";
/* ------------------------------------------------------------ 企业空间管理中心首页 -------------------------------------------------------------*/
/* -- 全局定位 --*/
* { margin:0px; padding:0px; font-size:12px; font-weight:normal; list-style-type:none; }
html, body { margin:auto; padding:0px;background-color:#fff; text-align:center; }
#container { margin:auto; width:100%; height:100%; }
.button{ background:url(images/button.gif) repeat-x -1px; width:89px; height:30px; text-align:center; font-size:12px; color:#676767; line-height:30px; margin-top:5px; margin-bottom:5px; border:0;}
.button a{ text-decoration:none; font-size:12px; color:#676767;}
.button a:hover{font-size:12px; color:#ac0000;}
.button01{ background:url(images/button01.gif) repeat-x; width:62px; height:30px; text-align:center; font-size:12px; color:#676767; line-height:30px; margin:10px 0px 5px 20px; border:0;}
.button01 a{ text-decoration:none; font-size:12px; color:#676767;}
.button01 a:hover{font-size:12px; color:#ac0000;}
.clear { clear:both; }
.dlf { float:left;}
.dlf img{margin-top:9px;}
.space{ width:100%; height:10px;}
.textin {text-indent:42px;}
.subask {height:29px; line-height:29px; font-size:12px; color:#b60b0b; font-weight:bold; text-align:right; float:right; padding-right:20px; }
.subask a{font-size:12px; color:#b60b0b; font-weight:bold; text-decoration:none;}
img{ border:0px;}
a{color:#454545;}
.bline {
border-bottom: 1px dotted #BCD0B5;
background-color: #FFFFFF;
}
.sendtable{
border: 1px solid #BCD0B5;
margin-bottom:6px;
}
.sendtable td{
padding-left:3px;
padding-right:3px;
}
/* -- 企业管理头部 --*/
#manage_company_header { width:100%; background:url(images/manage_company_logobg.gif) repeat-x; margin:auto; text-align:center; }
#manage_company_top { height:71px; margin:auto; width:760px; }
.manage_company_logo { background:url(images/manage_company_logo.gif) no-repeat; height:71px; width:258px; float:left; }
.manage_company_welcome { background:url(images/manage_company_welcome.gif) no-repeat; font-size:12px; color:#FFFFFF; width:300px; float:right; text-indent:25px; margin-top:30px; margin-right:50px; text-align:left; }
.manage_company_welcome_green { color:#FFFF00;}
#manage_company_menubg { width:100%; height:33px; font-size:12px; color:#355b00; background-image:url(images/company_topbg.gif); }
#manage_company_menu { margin:auto; text-align:center; width:760px; }
.manage_company_topimg { background:url(images/company_managecenter.gif) no-repeat; height:26px; margin:7px auto; width:95px; float:left;}
.manage_company_text { float:left; width:561px; text-align:left; height:33px; }
.manage_company_text a{ font-size:12px; color:#355b00; text-decoration:none; }
.manage_company_text a:hover{ font-size:12px; color:#ffffff;}
.manage_company_text ul{ list-style:none; text-align:left; }
.manage_company_text li{ background: url(images/title01.gif) no-repeat left; text-indent:20px; height:33px; float:right; line-height:33px; margin-left:10px; }
/* -- 企业管理中间页 --*/
#manage_company_con {width:100%; margin:0px; text-align:center;}
#manage_company_main { width:900px; margin-top:10px;}
/* -- 企业管理中间页左边 --*/
#manage_company_left { width:168px; float:left; padding:10px 10px 10px 10px;}
.manage_company_title { border:1px solid #b1c384; width:166px; text-align:left; margin-bottom:8px; }
.manage_company_title_bg { cursor:pointer; background:url(images/title01.gif) no-repeat 15px 6px; font-weight:bold; background-color:#e9f9c3; height:25px;line-height:25px; width:166px; text-indent:30px; }
.manage_company_main_text { margin-top:5px; width:166px; display:none;}
.manage_company_main_text a{ text-decoration:none; color:#555; }
.manage_company_main_text a:hover { color:#CC0000;}
.manage_company_main_text ul { list-style:none;}
.manage_company_main_text li { background:url(images/title02.gif) no-repeat 15px 6px; color:#555555; height:25px; width:166px; text-indent:40px; line-height:25px; }
#memberlist {text-align:left;}
/* -- 企业管理中间页右边 --*/
#manage_company_right { width:650px; float:left; padding:10px 10px 10px 0px; height:1050px;}
.turnleft{ text-align:left;}
.lineheight{line-height:20px; text-decoration:none;}
.lineheight a{ color:#555; text-decoration:none;}
.lineheight a:hover{ color:#CC0000;}
#manage_company_info { border:1px solid #b1c384; }
.manage_company_right_title {background:url(images/right_titlebg.gif) repeat-x; height:29px; border-bottom:1px solid #dee7ca; text-align:left; }
.manage_company_right_title ul{ list-style:none; }
.manage_company_right_title li{ background:url(images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.manage_company_right_text { width:610px; border-bottom:1px #d8e9b0 solid; }
.manage_company_right_text1 { border-right:1px solid #d8e9b0; float:left; width:120px; height:25px; line-height:25px; }
.manage_company_right_text2 { font-size:12px; color:#555555; float:left; height:25px; line-height:25px; width:429px; }
/* -- 企业管理修改密码 --*/
.company_manage_form_label { background-color:#fafeef; border:1px solid #a3a561; height:18px; width:150px; color:#50650e; margin-bottom:5px; vertical-align:middle; }
.company_manage_form_label1 { background-color:#fafeef; border:1px solid #a3a561; height:120px; width:250px; color:#50650e; margin-bottom:5px; vertical-align:middle; vertical-align:bottom; }
.text_padding { padding-left:20px;}
/* -- 企业管理企业资料 --*/
.manage_company_info_title_bg {background:url(images/right_titlebg.gif) repeat-x; height:29px; border-bottom:1px solid #dee7ca; text-align:left; }
.manage_company_info_title_bg ul{ list-style:none; }
.manage_company_info_title_bg li{ background:url(images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.manage_company_info_text { height:20px; color:#555; padding:5px 0px 0px 10px;; text-align:left; }
.manage_company_info_text span{ color:#CC3300; padding-left:10px; }
.br { height:30px; padding:30px 0px 15px 30px; text-align:left; }
/* -- 企业管理企业文化 --*/
.button_form_text { height:30px; vertical-align:middle; padding-left:20px; padding-bottom:30px;}
.yanzhengma { background-color:#f5ffd5; border:1px solid #a3a561; height:16px; width:60px; color:#a3a561; }
/* -- 发布招聘 --*/
.addjob_form { padding-top:5px; width:600px; text-align:left; padding-left:10px; margin-top:10px; line-height:25px; }
#joblist{text-align:left; padding:10px; width:600px; line-height:20px; border:1px solid #b1c384; margin-bottom:8px;}
#joblist ul{list-style:none;}
#joblist li{color:#444; width:580px; float:left; height:30px; line-height:30px; border-bottom:1px dotted #E0E0E0;}
#joblist li a{color:#444; text-decoration:none; font-weight:bold;}
#joblist li a:hover{color:#ff72ae;}
/* -- 发布分类信息 --*/
.company_manage_form_option { background-color:#fafeef; color:#50650e; border:1px solid #a3a561; }
.addjob_form dd{ width:560px; height:28px; text-align:left; float:left; }
.addjob_form dd.big{ width:560px; height:50px; text-align:left; float:left; }
/*--我的提问--*/
#myask_right{ width:612px; float:left; padding:10px 10px 10px 0px;}
#myask_info { border:1px solid #b1c384; width:610px; }
.myask_title { background:url(images/right_titlebg.gif) repeat-x; height:29px;border-bottom:1px solid #b1c384; }
.myask_title ul{ list-style:none; }
.myask_title li{ background:url(images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; text-align:left; float:left; }
.myask_form{width:590px; float:left; padding:10px; background-color:#e9f9c3; }
.myask_formbg{ background-color:#fcfff6; width:580px; }
.myask_formbg dd{ padding-top:5px;}
/*--我的圈子--*/
.bigtext{font-size:14px; font-weight:bold; color:#355b00; text-align:left; padding-top:10px; border-bottom:1px dotted #d5e4b8;}
.smalltext { color:#444;text-align:left;}
.smalltext a{ color:#444; text-decoration:none;}
.smalltext a:hover{color:#cc000f;}
.smallbor{width:70px; height:20px; line-height:20px; float:left;}
.smallbor a{color:#444; text-decoration:none;}
.smallbor1{width:80px; height:20px; line-height:20px; float:left;}
.smallbor1 a{color:#444; text-decoration:none;}
.middlebor{width:210px; height:25px; line-height:25px; float:left; }
.highbor1{width:150px; padding-left:10px;height:25px; line-height:25px; float:left;}
.highbor{width:290px; padding-left:10px; height:20px; line-height:20px; float:left;}
.highbor a{color:#444; text-decoration:none;}
.highbor2{width:580px; padding-left:10px; height:25px; line-height:25px; float:left;}
.highbor2 a{color:#444; text-decoration:none;}
.myask_forbg_title {height:50px; line-height:50px;}
#myask_list_info { border:1px solid #b1c384; width:610px; background-color:#fcfff6; height:30px; line-height:30px; color:#355b00; margin-top:8px; float:left; }
#myask_list_info a{color:#355b00; text-decoration:none;}
##myask_list_info a:hover{color:#cc000f;}
.checkbox a{ color:#444; height:30px; text-decoration:none; line-height:30xpx; }
.checkbox a:hover{color:#cc000f;}
.group_label{ background-color:#fff; border:1px solid #d5d5d5; height:18px; width:350px; color:#888; vertical-align:middle; line-height:18px; }
.group_label1{ background-color:#fff; border:1px solid #d5d5d5; height:18px; width:250px; color:#888; vertical-align:middle; line-height:18px; }
.group_option{ background-color:#f4f4f4; color:#888; border:1px solid #d5d5d5; }
.group_label2{ background-color:#fff; border:1px solid #d5d5d5; height:80px; width:350px; color:#888; vertical-align:middle; line-height:18px; }
.member_img{width:620px; background-color:#fff; text-align:center;}
.member_img ul{list-style:none; }
.member_img li{width:150px; float:left;}
.member_img li a:hover{width:150px; height:90px; display:block; background-color:#eee;}
/*--企业会员中心--*/
.commember1{background-color:#fefee8; color:#355b00; }
.commember1 td,.commember2 td{text-align:left; width:580px; height:30px; line-height:30px; text-indent:35px; font-weight:700; }
.commember1 td{ background:url(images/menumember.gif) no-repeat 10px 6px; }
.commember2{color:#355b00;}
.commember2 td{background:url(images/money.gif) no-repeat 10px 6px; border-bottom:1px dotted #d5d5d5;}
.commember3 { width:580px; height:30px; text-align:left; line-height:30px; }
.comloginlaber{ width:120px; height:18px; line-height:18px; border:1px solid #d5d5d5; }
.comloginlaber1{ width:60px; height:18px; line-height:18px; border:1px solid #d5d5d5; }
.combuy{width:580px; text-align:left; padding-left:20px; border-top:1px dotted #d5d5d5; }
.combuy td a{ text-decoration:none; color:#355b00; font-size:14px;}
/*--积分兑换--*/
.jifenlabel{ width:120px; height:18px; line-height:18px; border:1px solid #c1c1c1; color:#d10000; }
/*--连载--*/
.member_booklabel{ background-color:#fafeef; border:1px solid #a3a561; height:18px; width:40px; color:#50650e; margin-bottom:5px; vertical-align:middle; }
.member_booklabel1{ background-color:#ffffed; border:1px solid #ccc; height:18px; width:40px; color:#454545; margin-bottom:5px; vertical-align:middle; }
.member_booktext{background-color:#fafeef;border:1px solid #a3a561;height:50px;width:210px;color:#50650e;margin-bottom:5px;}
.menu_nav li{float:left;padding:5px;font-size:14px;}
.menu_nav a{color:#000;}
.current {border:1px solid #e9f9c3;background:#e9f9c3;color:#000;font-weight:bold;} | zyyhong | trunk/jiaju001/news/member/templets/company_style.css | CSS | asf20 | 11,679 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更改信息</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function checkSubmit()
{
if(document.form1.title.value==""){
alert("文档标题不能为空!");
document.form1.title.focus();
return false;
}
if(document.form1.typeid.value==0){
alert("文档隶属栏目必须选择!");
return false;
}
if(document.form1.vdcode.value==""){
document.form1.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px;">
<tr>
<div class="manage_company_right_title">
<ul><li>更改信息:</li></ul>
</div>
</tr>
<tr>
<form name="form1" action="archives_edit_action.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
<input type="hidden" name="dopost" value="editArc">
<input type="hidden" name="ID" value="<?php echo $arcRow['ID']?>">
<input type="hidden" name="channelid" value="<?php echo $arcRow['channel']?>">
<td height="183" valign="top" style="padding-top:3px">
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆常规参数:</strong></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28"><?php echo $cInfos['typename'];?>标题:</td>
<td align="left"><input name="title" type="text" style="width:220px" id="title" size="30" class="company_manage_form_label" value="<?php echo $arcRow['title']?>" />
<font color="#FF0000">*</font> 发布人:
<input name="writer" type="text" id="writer" style="width:120px" size="15" class="company_manage_form_label" value="<?php echo $arcRow['writer']?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">隶属栏目:</td>
<td align="left"><?php
echo GetTypeidSelMember('form1','typeid','selbt1',$arcRow['channel'],$arcRow['typeid'],$arow['typename'],false);
?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">我的分类:</td>
<td align="left"><select name="mtype" id="mtype" style="width:200px">
<?php
$dsql->SetQuery("Select * From #@__member_arctype where memberid='".$cfg_ml->M_ID."' ;");
$dsql->Execute();
if($row['mtype']==0) echo "<option value='0'>--请选择分类--</option>";
while($arow = $dsql->GetObject()){
if($row['mtype']==$arow->aid) echo "<option value='".$arow->aid."' selected>".$arow->typename."</option>\r\n";
else echo "<option value='".$arow->aid."'>".$arow->typename."</option>\r\n";
}
?>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">内容简介:</td>
<td align="left"><textarea name="description" id="description" style="width:80%;height:50px"><?php echo $arcRow['description']?>
</textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">标签(TAG):</td>
<td align="left"><input name="keywords" type="text" id="keywords" style="width:50%;" value="<?php echo $arcRow['keywords']?>" class="company_manage_form_label" />
(多个标签(TAG)用空格分开)</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="bline">
<tr>
<td width="20%" height="28">缩略图:</td>
<td align="left"><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePic($Obj('picview'),$Obj('litpic'),$Obj('picarea'));" class="company_manage_form_label" /></td>
</tr>
<tr id="picarea" style='<?php echo ($arcRow['litpic']!='' ? '' : 'display:none'); ?>'>
<td height="28">预 览:</td>
<td align="left"><img src="<?php echo ($arcRow['litpic']!='' ? $arcRow['litpic'] : "img/pview.gif"); ?>" id="picview" width="150" height="120" /></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="2" class="sendtable">
<tr>
<td height="24" bgcolor="#F0FBE3"><strong>◆附加参数:</strong></td>
</tr>
<?php PrintAutoFieldsEdit($cInfos['fieldset'],$addRow,'autofield'); ?>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D9EDC0">
<tr bgcolor="#F7FDF0">
<td width="400%" height="45" colspan="4" align="center"> <input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" style="cursor:hand" onClick="location.reload();"> </td>
</tr>
</table></td>
</form>
</tr>
<tr>
<td height="10"></td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/archives_edit.htm | HTML | asf20 | 7,619 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language="javascript">
function viewArc(aid){
window.open("<?php echo $cfg_plus_dir?>/view.php?aid="+aid);
}
function editArc(aid,channelid){
var arceditFile;
if(channelid==1) arceditFile = "article_edit.php?";
else if(channelid==2) arceditFile = "album_edit.php?";
else arceditFile = "archives_edit.php?channelid="+channelid+"&";
location = arceditFile + "aid="+aid+"&dopost=editArc";
}
function delArc(aid){
if(window.confirm('你确定要删除这篇文档吗?')) location="archives_do.php?aid="+aid+"&dopost=delArc";
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/head.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/menu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="checkbox">
<tr>
<td height="183" valign="top">
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' valign='top'>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:3px; margin-top:10px;">
<tr bgcolor="#ffffff">
<div class="manage_company_right_title">
<ul><li>
<?php echo $positionname?>
内容列表</li></ul>
</div>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D9EDC0">
<form name="form2">
<tr align="center" bgcolor="#FAFAF1" height="24">
<td width="33%" bgcolor="#F0F8D6">文章标题</td>
<td width="14%" bgcolor="#F0F8D6">发布时间</td>
<td width="16%" bgcolor="#F0F8D6">类目</td>
<td width="10%" bgcolor="#F0F8D6">点击</td>
<td width="9%" bgcolor="#F0F8D6">状态</td>
<td width="18%" bgcolor="#F0F8D6">操作</td>
</tr>
<?php
$mylist = $dlist->GetDataList();
$exday = 3600 * 24 * $cfg_locked_day;
$ntime = mytime();
while($row = $mylist->GetArray('dm'))
{
?>
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FBFEE9';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="24">
<td align='left'>
·<a href='<?php echo $cfg_plus_dir?>/view.php?aid=<?php echo $row['aid']?>' target='_blank'><u><?php echo $row['title']?><?php echo IsPicArchives($row['litpic'])?></u></a>
</td>
<td>
<?php echo GetDateMk($row['uptime'])?>
</td>
<td>
<?php echo $row['typename']?>
</td>
<td>
<?php echo $row['click']?>
</td>
<td>
<?php
if($row['arcrank']>=0) echo "已审核";
else echo "<font color='red'>未审核</font>";
?>
</td>
<td>
<a href="javascript:editArc(<?php echo $row['aid']; ?>,<?php echo $row['channelid']; ?>);">改</a> |
<a href="javascript:delArc(<?php echo $row['aid']; ?>);">删</a> |
<a href="javascript:viewArc(<?php echo $row['aid']; ?>);">预览</a>
</td>
</tr>
<?php
}
?>
</form>
<tr align="right" bgcolor="#EEF4EA">
<td height="20" colspan="6" align="center" bgcolor="#F9FCEF">
<?php echo $dlist->GetPageList(7);?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="border: 1px solid #D9EDC0;" height="26">
<table width='100%'border='0' cellpadding='1' cellspacing='1'>
<tr bgcolor='#EEF4EA'>
<form name='form3' action='content_list.php' method='get'>
<input type='hidden' name='dopost' value='listArchives'>
<input type='hidden' name='channelid' value='<?php echo $channelid?>'>
<td background="img/nnnbg.gif" bgcolor="#F3FADE"><table width='580' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='90' align='center'>请选择类目:</td>
<td width='160'>
<select name='mtype' style='width:150px'>
<?php
$dsql->SetQuery("Select * From `#@__member_arctype` where memberid='".$cfg_ml->M_ID."' ;");
$dsql->Execute('mylist');
echo "<option value='0'>--请选择分类--</option>";
while($arow = $dsql->GetObject('mylist')){
if($mtype==$arow->aid) echo "<option value='".$arow->aid."' selected>".$arow->typename."</option>\r\n";
else echo "<option value='".$arow->aid."'>".$arow->typename."</option>\r\n";
}
?>
</select>
</td>
<td width='80'> 关键字: </td>
<td width='150'> <input type='text' name='keyword' value='<?php echo $keyword?>' style='width:140'>
</td>
<td> <input name="imageField" type="image" src="img/button_search.gif" width="60" height="22" border="0" class="np">
</td>
</tr>
</table></td>
</form>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="4"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="24" valign="top"> </td>
</tr>
</table></td>
</tr>
</table>
<?php include(dirname(__FILE__)."/foot.htm"); ?>
</div>
</body>
</html> | zyyhong | trunk/jiaju001/news/member/templets/content_list.htm | HTML | asf20 | 5,221 |
<?php
if($cfg_ml->M_utype == 1){
require_once(dirname(__FILE__)."/commenu.php");
}else
{
?>
<script src="<?php echo $cfg_member_dir;?>/jquery.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/ecmascript">
<!--
$(document).ready(function(){
smenu = $(".manage_company_title .manage_company_title_bg");
i=1;
cname = "dushow";
smenu.each(function(){
$(this).attr("_deshow",i);
mbox = $(this).next(".manage_company_main_text");
cbname = cname+i;
if($.cookie(cbname)==null){
$.cookie(cbname,mbox.css("display"));
}else{
$.cookie(cbname) == "none" ? mbox.hide("fast") : mbox.show("fast");
}
i++;
});
smenu.click(function(){
mbox = $(this).next(".manage_company_main_text");
id = $(this).attr("_deshow");
cbname = cname+id;
if(mbox.css("display")=="block"){
mbox.hide("fast");
$.cookie(cbname,"none");
}else{
mbox.show("fast");
$.cookie(cbname,"block");
}
});
});
-->
</script>
<!-- //个人工具箱 -->
<div id="manage_company_left">
<div class="manage_company_title">
<div class="manage_company_title_bg">个人工具箱</div>
<div class="manage_company_main_text">
<ul>
<li><a href="money2score.php">金币、积分兑换</a></li>
<li><a href="mystow.php">我的收藏夹</a></li>
<li><a href="guestbook_admin.php">我的留言簿</a></li>
<li><a href="mypay.php">金币消费记录</a></li>
<li><a href="my_operation.php">历史订单管理</a></li>
<li><a href="my_friends.php">管理我的好友录</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">个人资料</div>
<div class="manage_company_main_text">
<ul>
<li><a href="edit_pwd.php">登录密码更改</a></li>
<li><a href="edit_info.php">个人资料更改</a></li>
<li><a href="space_info.php">空间信息更改</a></li>
<li><a href="flink_main.php">友情链接管理</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">我的短信</div>
<div class="manage_company_main_text">
<ul>
<li><a href="pm.php?action=send">发短信</a></li>
<li><a href="pm.php?folder=track">发件箱</a></li>
<li><a href="pm.php?folder=inbox">收件箱</a></li>
<li><a href="pm.php?folder=outbox">草稿箱</a></li>
</ul>
</div>
</div>
<!-- add -->
<div class="manage_company_title">
<div class="manage_company_title_bg">我的文档</div>
<div class="manage_company_main_text">
<ul>
<li><a href="article_add.php">发表新文章</a></li>
<li><a href="content_list.php?channelid=1">已发表的文章</a></li>
<?php
if($cfg_mb_album=='Y'){
?>
<li><a href="album_add.php">发表新图集</a></li>
<li><a href="content_list.php?channelid=2">已发表的图集</a></li>
<?php } ?>
<li><a href="space_upload.php">我上传的文件</a></li>
<li><a href="archives_type.php">管理我的分类</a></li>
</ul>
</div>
</div>
<div class="manage_company_title">
<div class="manage_company_title_bg">信息发布</div>
<div class="manage_company_main_text">
<ul>
<li><a href="do.php?action=add&channelid=-2">分类信息发布</a></li>
<li><a href="do.php?action=list&channelid=-2">分类信息管理</a></li>
</ul>
</div>
</div>
<?php
if($cfg_mb_sendall=='Y'){
if(!isset($dsql) || !is_object($dsql)){
$dsql = new DedeSql(false);
}
$dsql->SetQuery("Select ID,typename,useraddcon,usermancon From #@__channeltype where issend=1 And issystem=0 And sendmember<>1 ");
$dsql->Execute();
while($menurow = $dsql->GetArray())
{
if(empty($menurow['useraddcon'])) $menurow['useraddcon'] = 'archives_add.php';
if(empty($menurow['usermancon'])) $menurow['usermancon'] = 'content_list.php';
?>
<div class="manage_company_title">
<div class="manage_company_title_bg"><?php echo $menurow['typename']?></div>
<div class="manage_company_main_text">
<ul>
<li><a href="<?php echo $menurow['useraddcon']; ?>?channelid=<?php echo $menurow['ID']?>">发布新<?php echo $menurow['typename']?></a></li>
<li><a href="<?php echo $menurow['usermancon']; ?>?channelid=<?php echo $menurow['ID']?>">已发布<?php echo $menurow['typename']?></a></li>
</ul>
</div>
</div>
<?php
}}}
?>
</div> | zyyhong | trunk/jiaju001/news/member/templets/menu.php | PHP | asf20 | 5,361 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改附件</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language='javascript' src='main.js'></script>
<script language="javascript">
<!--
function checkSubmit()
{
if(document.form1.title.value==""){
alert("标题不能为空!");
document.form1.title.focus();
return false;
}
if(document.form1.vdcode.value==""){
document.form1.vdcode.focus();
alert("验证码不能为空!");
return false;
}
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="150" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="26" background="img/nnnbg.gif"> <font color="#333333">
<strong> 修改附件:</strong></font></td>
</tr>
<tr>
<form name="form1" action="archives_do.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
<input type="hidden" name="aid" value="<?php echo $aid?>">
<input type="hidden" name="dopost" value="editUpload">
<td height="183" valign="top" style="padding-top:3px">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D9EDC0" style="margin-bottom:6px">
<tr>
<td width="20%" height="28" align="center" bgcolor="#FFFFFF">说明标题:</td>
<td colspan="3" bgcolor="#FFFFFF">
<input name="title" type="text" id="title" size="30" class="nb" value="<?php echo $arow['title']?>">
<font color="#FF0000">*</font>
</td>
</tr>
<tr bgcolor="#F7FDF0">
<td height="28" align="center" bgcolor="#F7FDF0">验证码:</td>
<td colspan="3" bgcolor="#F7FDF0"> <table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="84"><input name="vdcode" type="text" id="vdcode" size="10"></td>
<td width="116"><img src='../include/vdimgck.php' width='50' height='20'></td>
</tr>
</table></td>
</tr>
<?php
if($arow['mediatype']==1){
?>
<tr bgcolor="#FFFFFF">
<td height="28" align="center">更换图片:</td>
<td colspan="3"><input name="addonfile" type="file" id="addonfile" style="width:300" onChange="SeePic($Obj('picview'),$Obj('addonfile'));"></td>
</tr>
<tr>
<td colspan="4" align="center" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<?php
$furl = $arow['url'];
$w = 150;
if($furl!="" && file_exists($cfg_basedir.$furl)){
$info = "";
$datas = GetImageSize($cfg_basedir.$furl,$info);
if($datas[0]>500) $w = 500;
else $w = $datas[0];
$furl = $furl."?".time();
}else{
$furl = "img/pview.gif";
}
?>
<a href="<?php echo $furl?>" target="_blank"><img src="<?php echo $furl?>" id="picview" width="<?php echo $w?>" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
<?php
}else{
?>
<tr bgcolor="#FFFFFF">
<td height="28" align="center">更换附件:</td>
<td colspan="3"> <input name="addonfile" type="file" id="addonfile" style="width:300"></td>
</tr>
<?php
}
?>
<tr bgcolor="#F7FDF0">
<td height="44" colspan="4" align="center"> <input name="imageField" type="image" src="img/button_save.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" style="cursor:hand" onClick="location.reload();">
</td>
</tr>
</table>
</td>
</form>
</tr>
<tr>
<td height="10"></td>
</tr>
</table> </td>
</tr>
</table>
<?php
if(isset($dsql) && is_object($dsql)) $dsql->Close();
include(dirname(__FILE__)."/foot.htm");
?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/comupload_edit.htm | HTML | asf20 | 5,237 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--人才招聘</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 人才招聘
</div>
<div class="about_culture_title">
<ul><li>人才招聘</li></ul>
</div>
<div class="news_list_text">
<ul class="news_list">
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = "index.php?uid=$uid&type=job&jobid=$row[id]";
?>
<li><span><?php echo strftime('%y-%m-%d %H:%M',$row['pubdate'])?> </span><a href="<?php echo $row['arcurl']?>"><?php echo $row['job']?></a></li>
<?php
}
?>
</ul>
<ul><li class="news_list_class"><?php echo $dlist->GetPageList(7);?> </li>
</ul>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_job.htm | HTML | asf20 | 4,023 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--供求信息</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_now">
<div class="about_titleicon">当前位置 -- 供求信息
</div>
<div class="about_culture_title">
<ul><li>供求信息</li></ul>
</div>
<div class="news_list_text">
<ul class="news_list">
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = GetFileUrl($row['ID'],$row['typeid'],$row['senddate'],
$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],
$row['typedir'],$row['money'],true,$row['siteurl']);
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<li><span><?php echo strftime('%y-%m-%d %H:%M',$row['senddate'])?> </span><a href="<?php echo $row['arcurl']?>"><?php echo $row['title']?></a></li>
<?php
}
?>
</ul>
<ul><li class="news_list_class"><?php echo $dlist->GetPageList(7);?></li>
<?php
$dlist->Close();
$dsql->Close();
?>
</ul>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_info.htm | HTML | asf20 | 4,343 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--联系我们</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 联系我们
</div>
<div class="about_culture_title">
<ul><li>联系我们</li></ul>
</div>
<div class="about_culture_text">
公司名称:<?php echo $cominfo['comname']?><br>
公司地址:<?php echo $cominfo['comaddr']?><br>
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_contact.htm | HTML | asf20 | 3,914 |
人才招聘:
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = "job.php?id=$row[id]";
?>
<a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['job']?></a><br>
<?php
}
?>
<?php echo $dlist->GetPageList(7);?>
<?php
$dlist->Close();
$dsql->Close();
?> | zyyhong | trunk/jiaju001/news/member/templets/company/job.htm | HTML | asf20 | 334 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--首页</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="right">
<div class="right_about">
<div class="right_title">
<ul><li>公司简介</li></ul>
<div class="rightabout_text"><?php echo $cominfo['cominfo']?>
</div>
<div class="clear">
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司文化 -->
<div class="right_culture">
<div class="right_culture_title">
<ul><li>公司文化</li></ul>
<div class="right_culture_text">
<?php echo $cominfo['culture']?>
</div>
<div class="clear">
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司新闻 -->
<div class="right_news">
<div class="right_news_title">
<ul><li>公司新闻</li></ul>
<div class="right_news_text">
<?php
if($news){
foreach($news as $new){
?>
<br><br>
<p>·<a href="<?php echo $new['arcurl']?>"><?php echo $new['title']?></a></p>
<?php
}
}
?>
</div>
</div>
</div>
<!-- 产品展示 -->
<div class="right_product">
<div class="right_product_title">
<ul><li>产品展示</li></ul>
</div>
<?php
if($products){
foreach($products as $product){
?>
<div class="right_img">
<a href="<?php echo $product['arcurl']?>"><img src="<?php echo $product['litpic']?>" /></a><br />
<a href="<?php echo $product['arcurl']?>"><?php echo $product['title']?></a>
</div>
<?php
}
}
?>
</div>
<!-- 供求信息 -->
<div class="right_info">
<div class="right_info_title">
<ul><li>供求信息</li></ul>
</div>
<div class="right_info_text">
<?php
if($infos){
foreach($infos as $info){
?>
<p>·<a href="<?php echo $info['arcurl']?>"><?php echo $info['title']?></a></p>
<?php
}
}
?>
</div>
</div>
<!-- 人才招聘 -->
<div class="right_job">
<div class="right_job_title">
<ul><li>人才招聘</li></ul>
</div>
<div class="right_job_text">
<?php
if($jobs){
foreach($jobs as $job){
?>
<p>·<a href="<?php echo $job['arcurl']?>"><?php echo $job['job']?></a></p>
<?php
}
}
?>
</div>
</div>
<div class="clear">
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 尾部开始 -->
<div id="footer">
<div class="footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器。
</div>
</div>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_index.htm | HTML | asf20 | 5,973 |
产品展示:
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = GetFileUrl($row['ID'],$row['typeid'],$row['senddate'],
$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],
$row['typedir'],$row['money'],true,$row['siteurl']);
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<table border='0' width='100%'>
<tr height='24'>
<td width='19%' rowspan="2" align="center">
<table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
<tr>
<td bgcolor="#FFFFFF">
<a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
</td>
</tr>
</table>
</td>
<td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
<td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
<td width="24%">点击:<?php echo $row['click']?></td>
</tr>
<tr>
<td height="56" colspan='3'> <?php echo $row['description']?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['senddate'])?>)</font>
</td>
</tr>
<tr>
<td height='2' colspan='4' background='img/writerbg.gif'></td>
</tr>
</table>
<?php
}
?>
<?php echo $dlist->GetPageList(7);?>
<?php
$dlist->Close();
$dsql->Close();
?> | zyyhong | trunk/jiaju001/news/member/templets/company/product.htm | HTML | asf20 | 1,505 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--在线留言</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 在线留言
</div>
<div class="about_culture_title">
<ul><li>在线留言</li></ul>
</div>
<form action="member_guestbook_action.php" name="form1" method="post">
<input type="hidden" name="uidnum" value="<?php echo $spaceInfos['ID'];?>">
<input type="hidden" name="uid" value="<?php echo $uid?>">
<div class="product_form">
<div class="product_form_text">留言标题:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="title" name="title" value="" class="product_form_label" />
</div>
<div class="product_form_text">详细内容:
<input type="text" id="msg" name="msg" value="" class="product_form_label01" />
</div>
<div class="product_form_text">联系姓名:
<input type="text" id="uname" name="uname" value="<?php if(isset($cfg_ml->M_UserName) && $cfg_ml->M_UserName!="") echo $cfg_ml->M_UserName; ?>" class="product_form_label" />
</div>
<div class="product_form_text">电子信箱:
<input type="text" id="email" name="email" value="" class="product_form_label" />
</div>
<div class="product_form_text">即时通信:
<input type="text" id="qq" name="qq" value="" class="product_form_label" />(注明QQ或MSN等)
</div>
<div class="product_form_text">联系电话:
<input type="text" id="tel" name="tel" value="" class="product_form_label" />
</div>
<div class="product_form_text">验证码:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="vdcode" name="vdcode" value="" class="product_form_label" />
<img src='../include/vdimgck.php' width='50' height='20'>
</div>
<div class="product_form_button">
<input type="submit" class="button" value="提交留言" />
<input type="reset" class="button01" value="重填" />
</div>
</div>
</form>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_online.htm | HTML | asf20 | 5,583 |
<a href="/member/index.php?uid=<?php echo $uid?>">公司首页</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=culture">企业文化</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=news">公司新闻</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=info">供求信息</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=product">产品展示</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=job">人才招聘</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a>
<a href="/member/index.php?uid=<?php echo $uid?>&type=contact">联系我们</a>
<br><br>
企业简介:
<?php echo $cominfo['cominfo']?>
<br><br>
企业文化:
<?php echo $cominfo['culture']?>
<br><br>
公司新闻:
<?php
if($news){
foreach($news as $new){
?>
<br><br>
标题:<a href="<?php echo $new['arcurl']?>"><?php echo $new['title']?></a>
<?php
}
}
?>
<br><br>
产品展示:
<?php
if($products){
foreach($products as $product){
?>
<br><br>
标题:<a href="<?php echo $product['arcurl']?>"><?php echo $product['title']?></a>
<br><br>
缩略图:<img src="<?php echo $product['litpic']?>">
<?php
}
}
?>
<br><br>
供求信息:
<?php
if($infos){
foreach($infos as $info){
?>
<br><br>
标题:<a href="<?php echo $info['arcurl']?>"><?php echo $info['title']?></a>
<br><br>
缩略图:<img src="<?php echo $info['litpic']?>">
<?php
}
}
?>
<br><br>
人才招聘:
<?php
if($jobs){
foreach($jobs as $job){
?>
<br><br>
标题:<a href="<?php echo $job['arcurl']?>"><?php echo $job['job']?></a>
<?php
}
}
?>
<br><br>
联系我们:<br><br>
公司名称:<?php echo $cominfo['comname']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
手机:<?php echo $cominfo['mobi']?><br>
注册时间:<?php echo $cominfo['regyear']?><br>
注册地:<?php echo $cominfo['regaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
| zyyhong | trunk/jiaju001/news/member/templets/company/company.htm | HTML | asf20 | 2,199 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--产品展示</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 产品展示
</div>
<div class="about_culture_title">
<ul><li>产品展示</li></ul>
</div>
<div>
<div class="product_title">
<div class="product_title_text">
<div class="product_title_text_li01">图片</div>
<div class="product_title_text_li02">产品/公司名</div>
</div>
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = GetFileUrl($row['ID'],$row['typeid'],$row['senddate'],
$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],
$row['typedir'],$row['money'],true,$row['siteurl']);
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<div>
<div class="product_title_pic01">
<div class="product_title_pic">
<a href="<?php echo $row['arcurl']?>"><img border="0" src="<?php echo $row['litpic']?>" alt="<?php echo $row['title']?>"></a>
</div>
</div>
<div class="product_title_pic02"><a href="<?php echo $row['arcurl']?>"><?php echo $row['title']?></a></div>
<div class="clear">
</div>
<div class="clear">
</div>
</div>
<?php
}
?>
</div>
<div><ul><li class="news_list_class"><?php echo $dlist->GetPageList(7);?></li></ul></div>
<form name="order" action="order_action.php" method="post">
<input type=hidden name=touid value="<?php echo $comid?>">
<div class="product_form">
<div class="product_form_text">公司名称:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="company" name="company" value="" class="product_form_label" />
</div>
<div class="product_form_text">联系人:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="username" name="username" value="" class="product_form_label" />
</div>
<div class="product_form_text">联系电话:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="phone" name="phone" value="" class="product_form_label" />
</div>
<div class="product_form_text">传真:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="fax" name="fax" value="" class="product_form_label" />
</div>
<div class="product_form_text">email:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="email" name="email" value="" class="product_form_label" />
</div>
<div class="product_form_text">QQ:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="qq" name="qq" value="" class="product_form_label" />
</div>
<div class="product_form_text">MSN:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="msn" name="msn" value="" class="product_form_label" />
</div>
<div class="product_form_text">联系地址:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="address" name="address" value="" class="product_form_label" />
</div>
<div class="product_form_text">意向产品:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="products" name="products" value="" class="product_form_label" />
</div>
<div class="product_form_text">订购数量:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="nums" name="nums" value="" class="product_form_label" />
</div>
<div class="product_form_text">详细说明:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="content" name="content" value="" class="product_form_label01" />
</div>
<div class="product_form_text">验证码:
<label for="fname" accesskey="f" tabindex="1" ></label>
<input type="text" id="vdcode" name="vdcode" value="" class="product_form_label" />
<img src='../include/vdimgck.php' width='50' height='20'>
</div>
<div class="product_form_button">
<input type=submit class="button" value="提交订单" >
</div>
</form
></div>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_product.htm | HTML | asf20 | 8,499 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--公司简介</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 公司简介
</div>
<div class="about_culture_title">
<ul><li>公司简介</li></ul>
</div>
<div class="about_culture_text">
<?php echo $cominfo['cominfo']?>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_about.htm | HTML | asf20 | 3,580 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--公司新闻</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 公司新闻
</div>
<div class="about_culture_title">
<ul><li>公司新闻</li></ul>
</div>
<div class="news_list_text">
<ul class="news_list">
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = $row['url'];
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<li><span><?php echo strftime('%y-%m-%d %H:%M',$row['uptime'])?> </span><a href="<?php echo $row['arcurl']?>"><?php echo $row['title']?></a></li>
<?php
}
?>
</ul>
<ul><li class="news_list_class"><?php echo $dlist->GetPageList(7);?></li>
</ul>
<?php
$dlist->Close();
$dsql->Close();
?>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_news.htm | HTML | asf20 | 4,230 |
公司新闻:
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = GetFileUrl($row['ID'],$row['typeid'],$row['senddate'],
$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],
$row['typedir'],$row['money'],true,$row['siteurl']);
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<table border='0' width='100%'>
<tr height='24'>
<td width='19%' rowspan="2" align="center">
<table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
<tr>
<td bgcolor="#FFFFFF">
<a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
</td>
</tr>
</table>
</td>
<td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
<td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
<td width="24%">点击:<?php echo $row['click']?></td>
</tr>
<tr>
<td height="56" colspan='3'> <?php echo $row['description']?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['senddate'])?>)</font>
</td>
</tr>
<tr>
<td height='2' colspan='4' background='img/writerbg.gif'></td>
</tr>
</table>
<?php
}
?>
<?php echo $dlist->GetPageList(7);?>
<?php
$dlist->Close();
$dsql->Close();
?> | zyyhong | trunk/jiaju001/news/member/templets/company/news.htm | HTML | asf20 | 1,505 |
企业文化:
<?php echo $cominfo['culture']?> | zyyhong | trunk/jiaju001/news/member/templets/company/culture.htm | HTML | asf20 | 49 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--人才招聘</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 人才招聘 -- 详细内容
</div>
<div class="news_view_title">
<ul><li></li></ul>
</div>
<div class="news_view_text">
<h1><?php echo $jobinfo['name']?>招聘信息</h1>
<h2>招聘职位:<?php echo $jobinfo['job']?></h2>
<h2>招聘部门:<?php echo $jobinfo['department']?></h2>
<h2>发布日期:<?php echo $jobinfo['pubdate'];?></h2>
<h2>截至日期:<?php echo $jobinfo['endtime']?></h2>
<h2>薪酬范围:<?php echo $jobinfo['salaries']?></h2>
<h2>招聘人数:<?php echo $jobinfo['nums']?></h2>
<h2>工作地址:<?php echo $jobinfo['address']?></h2>
<h2>职位描述:<?php echo $jobinfo['message']?></h2>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_job_view.htm | HTML | asf20 | 4,195 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templets/company/css/style.css" rel="stylesheet" type="text/css" />
<title><?php echo $cominfo['comname']; ?>--公司文化</title>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<div id="header">
<div id="topbg">
<div id="top">
<div class="topmanage"></div>
<div class="topmenu">
<ul>
<li><a href="index.php">中心主页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>">企业空间</a></li>
<li><a href="../company/">搜索企业</a></li>
<li><a href="../">网站主页</a></li>
</ul>
</div>
</div>
</div>
<div id="topmain">
<div id="toplogo">
</div>
<div class="clear">
</div>
</div>
</div>
<!-- 中间开始 -->
<div id="main">
<div id="left">
<div class="lefttitle">
</div>
<div class="leftmenu">
<ul>
<li><a href="index.php?uid=<?php echo $uid?>">公司首页</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=cominfo">公司简介</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=culture">企业文化</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=news">公司新闻</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=info">供求信息</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=product">产品展示</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=job">人才招聘</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=guestbook">在线留言</a></li>
<li><a href="index.php?uid=<?php echo $uid?>&type=contact">联系我们</a></li>
</ul>
</div>
<div class="leftlink">
<div class="leftlink_title">联系我们
</div>
<div class="leftlink_text">
联系人:<?php echo $cominfo['truename']?><br>
电话:<?php echo $cominfo['phone']?><br>
传真:<?php echo $cominfo['fax']?><br>
地址:<?php echo $cominfo['comaddr']?><br>
邮编:<?php echo $cominfo['postid']?><br>
</div>
</div>
<div class="clear">
</div>
</div>
<!-- 公司简介 -->
<div id="about_now">
<div class="about_titleicon">当前位置 -- 公司文化
</div>
<div class="about_culture_title">
<ul><li>公司文化</li></ul>
</div>
<div class="about_culture_text">
<?php echo $cominfo['culture']?>
</div>
</div>
<div class="clear">
</div>
</div>
<div id="about_footer">
<div class="about_footer_text">织梦内容管理系统(DedeCms)--国内最专业的PHP网站管理系统,轻松建站的首选利器
</div>
</div>
<div class="clear">
</div>
<!-- 尾部开始 -->
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/company_culture.htm | HTML | asf20 | 3,592 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>栏目选择</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="main.js"></script>
<script language="javascript" src="<?php echo $cfg_mainsite.$cfg_cmspath?>/include/dedeajax2.js"></script>
<script language="javascript">
function LoadSuns(ctid,tid,channelid)
{
if($DE(ctid).innerHTML.length < 10){
var myajax = new DedeAjax($DE(ctid),true,true,'','没子栏目','...');
myajax.SendGet('do.php?action=add&opall=<?php echo $opall?>&dopost=GetSunListsTree&channelid='+channelid+'&cid='+tid);
}else{
if(document.all) showHide(ctid);
}
}
function showHide(objname)
{
if($DE(objname).style.display=="none") $DE(objname).style.display = "block";
else $DE(objname).style.display="none";
return false;
}
function ReSel(ctid,cname){
if($DE('selid'+ctid).checked){
window.location='infoadd.php?channelid=<?php echo $channelid; ?>&typeid='+ctid;
}
}
</script>
<script language='javascript' src='../include/common.js'></script>
</head>
<body>
<div id="container">
<!-- 头部开始 -->
<?php include(dirname(__FILE__)."/../comhead.htm"); ?>
<!-- 中部开始 -->
<center>
<div id="manage_company_main">
<!-- 中部左边开始 -->
<?php include(dirname(__FILE__)."/../commenu.php");?>
<div style="width:610px; margin-top:10px;padding-left:10px;float:left;">
<div id="manage_company_info" class="turnleft">
<div class="manage_company_right_title">
<ul><li>√请在要选择的栏目打勾</li></ul>
</div>
<div style=" text-indent:10px;margin:10px 0px 10px 0px; line-height:30px;">
<?php
$tu = new TypeTreeMember();
$tu->ListAllType($c,$issend,$opall,$channelid);
$tu->Close();
?>
</div>
</div>
</div>
</div>
</div>
<div class="clear">
</div>
<?php include(dirname(__FILE__)."/../foot.htm"); ?>
</center>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/company/infotype.htm | HTML | asf20 | 2,140 |
/* ----------------------------------------------------------------- 企业空间首页 -------------------------------------------------------------------*/
/* 整体布局 */
* { margin:0px; padding:0px; font-size:12px; font-weight:normal; }
html, body { margin:auto; padding:0px;background-color:#e4f5c8; text-align:center;}
#container { margin:auto; width:100%; height:100%; text-align:left; height:100%; }
.button{ background:url(../images/button.gif) repeat-x -1px; width:89px; height:30px; text-align:center; font-size:12px; color:#676767; line-height:30px; margin-top:5px; margin-bottom:5px; border:0;}
.button a{ text-decoration:none; font-size:12px; color:#676767;}
.button a:hover{font-size:12px; color:#ac0000;}
.button01{ background:url(../images/button01.gif) repeat-x; width:62px; height:30px; text-align:center; font-size:12px; color:#676767; line-height:30px; margin:10px 0px 5px 20px; border:0;}
.button01 a{ text-decoration:none; font-size:12px; color:#676767;}
.button01 a:hover{font-size:12px; color:#ac0000;}
/* 顶部导航 */
#header { width:100%; height:100%; }
#topbg { width:100%; height:33px; font-size:12px; color:#355b00; background-image:url(../images/company_topbg.gif); }
#top { width:760px; margin:auto;}
.topmanage { background:url(../images/company_manage.gif) no-repeat; height:26px; margin:7px 0px 0px 0px; width:95px; float:left;}
.topmenu { float:left; width:561px; text-align:center; height:33px; }
.topmenu a{ font-size:12px; color:#355b00; text-decoration:none; }
.topmenu a:hover{ font-size:12px; color:#ffffff;}
.topmenu ul { list-style:none; text-align:center; }
.topmenu li { background: url(../images/top_01.gif) no-repeat left; text-indent:20px; height:33px; float:right; line-height:33px; margin-left:10px;}
/* 顶部LOGO */
#topmain { height:50px; padding:20px 0px 0px 20px; width:760px; margin:auto; }
#toplogo { background:url(../images/company_logo.gif) no-repeat; height:34px; width:118px;}
.clear { clear:both; }
/* 中间左边部分 */
#main { width:760px; margin:auto; background-color:#FFFFFF; height:100%; padding:0px 0px 30px 10px; }
#left { float:left; width:147px; height:100%; }
.lefttitle { margin-top:10px; background:url(../images/com_lefttitle.gif) no-repeat; height:28px; }
.leftmenu { border:1px solid #b1c384; }
.leftmenu a{ font-size:12px; color:#555555; text-decoration:none; }
.leftmenu a:hover{ font-size:12px; color:#cc543c; }
.leftmenu ul { list-style:none; text-align:center; }
.leftmenu li { background: url(../images/left_menu01.gif) no-repeat 30px; height:25px; line-height:25px; }
.leftlink { margin-top:10px; border:1px solid #b1c384; }
.leftlink_title {background:#daedab url(../images/title01.gif) no-repeat 10px; height:25px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:25px; }
.leftlink_text {font-size:12px; color:#355b00; padding:10px 5px 10px 10px; line-height:18px; }
/* 公司简介 */
#right { float:left; margin:10px 0px 0px 10px; width:593px; }
.right_about { border:1px solid #b1c384; float:left; width:593px; height:200px; padding-bottom:10px;}
.right_title { background:url(../images/right_titlebg.gif) repeat-x; height:29px; }
.right_title ul { list-style:none; }
.right_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; margin-bottom:10px; }
.right_logo { padding:40px 10px 10px 40px; float:left; }
.rightabout_text { font-size:12px; color:#888; line-height:18px; width:573px; height:160px; float:left; white-space:normal;word-break:break-all; overflow:hidden; padding-left:10px; }
.rightabout_text a{ color:#006600; font-weight:700; }
.rightabout_text a:hover{ color:#ff7200;}
/* 公司文化 */
.right_culture { width:290px; border:1px solid #b1c384; float:left; margin-top:10px; height:200px; padding-bottom:10px;}
.right_culture_title {background:url(../images/right_titlebg.gif) repeat-x; height:29px; padding:10px; }
.right_culture_title ul { list-style:none; }
.right_culture_title li{ background:url(../images/title01.gif) no-repeat 10px 8px;; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.right_culture_text { font-size:12px; color:#888; line-height:16px; height:160px; float:left; white-space:normal;word-break:break-all;overflow:hidden; width:270px;}
/* 公司新闻 */
.right_news {width:290px; border:1px solid #b1c384; float:right; margin-top:10px; height:200px; padding-bottom:10px; }
.right_news_title {background:url(../images/right_titlebg.gif) repeat-x; height:29px;}
.right_news_title ul { list-style:none; }
.right_news_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.right_news_text { font-size:12px; color:#888; line-height:22px; width:290px; float:right; text-indent:20px; }
/* 产品展示 */
.right_product { border:1px solid #b1c384; margin-top:10px; width:593px; float:left;height:150px; padding-bottom:10px; }
.right_product_title { background:url(../images/right_titlebg.gif) repeat-x; height:29px; }
.right_product_title ul { list-style:none; }
.right_product_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.right_img { padding:10px 0px 10px 30px;}
/* 供求信息 */
.right_info { width:290px; border:1px solid #b1c384; float:left; margin-top:10px;padding-bottom:10px; }
.right_info_title {background:url(../images/right_titlebg.gif) repeat-x; height:29px;}
.right_info_title ul { list-style:none; }
.right_info_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.right_info_text { font-size:12px; color:#888; line-height:22px; width:290px; float:right; text-indent:20px; }
.right_info_text a{ color:#555; text-decoration:none;}
.right_info_text a:hover{ color:#3300CC;}
/* 人才招聘 */
.right_job { width:290px; border:1px solid #b1c384; float:right; margin-top:10px;padding-bottom:10px; }
.right_job_title {background:url(../images/right_titlebg.gif) repeat-x; height:29px;}
.right_job_title ul { list-style:none; }
.right_job_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.right_job_text { font-size:12px; color:#888; line-height:22px; width:290px; float:right; text-indent:20px; }
.right_job_text a{ color:#555; text-decoration:none;}
.right_job_text a:hover{ color:#3300CC;}
/* 底部信息 */
#footer { width:770px; background-color:#4e7400; height:60px; margin:auto; }
.footer_text { font-size:12px; color:#daedab; line-height:60px; text-align:center;}
/* --------------------------------------------------------------- 企业文化内容页 -----------------------------------------------------------------*/
/* 公司文化内容信息 */
#about_now { width:593px; float:left; margin:10px 0px 0px 10px; text-align:left; }
.about_titleicon { background:url(../images/title02.gif) no-repeat 10px; font-size:12px; color:#355b00; text-indent:30px; }
.about_culture_title {background:url(../images/right_titlebg.gif) repeat-x; height:29px; border-bottom:1px solid #dee7ca; margin-top:5px; }
.about_culture_title ul { list-style:none; }
.about_culture_title li{ background:url(../images/title01.gif) no-repeat 10px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:30px; line-height:29px; }
.about_culture_text { font-size:12px; color:#555555; line-height:22px; margin-top:10px;width:593px; white-space:normal;word-break:break-all;overflow:auto;}
/* 公司文化底部信息 */
#about_footer { width:770px; background-color:#4e7400; height:60px; margin:auto; }
.about_footer_text { font-size:12px; color:#daedab; line-height:60px; text-align:center; }
/* --------------------------------------------------------------- 企业新闻内容页 -----------------------------------------------------------------*/
/* 公司新闻列表 */
.news_list{ margin: 0px 10px 20px; text-align: left; line-height:20px; list-style:none; }
.news_list_text { font-size:12px; color:#555555; padding-top:10px; }
.news_list ul{ list-style-type:none; margin: 0px; padding: 0px; }
.news_list li{ background: url(../images/line_01.gif) repeat-x bottom; /*列表底部的虚线*/ width: 100%; }
.news_list li a{ color: #777777; display: block; padding: 0px 0px 4px 15px; background: url(../images/jiantou.gif) no-repeat 0 6px; /*列表左边的箭头图片*/}
.news_list li span{ float: right;/*使span元素浮动到右面*/ text-align: right;/*日期右对齐*/ }
.news_list li a:hover{ color: #336699; background: url(../images/line_02.gif) repeat-x bottom; }
.news_list_class { font-size:12px; color:#355b00; list-style:none; text-align:right; padding-right:20px; padding-top:5px;}
.news_list_class a{ font-size:12px; color:#ab001c; list-style:none; text-align:right; padding-right:20px;}
.news_view_title { border-bottom:1px #e0e7ce solid; margin-bottom:10px; }
.news_view_text { font-size:12px; color:#355b00; }
.news_view_text h1{ font-size:14px; font-weight:bold; color:#555555; text-align:center; }
.news_view_text h2{ font-size:12px; color:#355b00; padding:10px 10px 0px 10px; }
/* --------------------------------------------------------------- 企业产品列表页 -----------------------------------------------------------------*/
.product_title { width:585px; margin:auto; text-align:center; background:url(../images/product_line.gif)repeat-x bottom;}
.product_title_text { background-color:#eef7d7; height:26px; margin-top:10px; text-align:center; line-height:26px;}
.product_title_text_li01 {font-size:12px; color:#355b00; border-right:2px solid #fff; float:left; width:120px;}
.product_title_text_li02 {font-size:12px; color:#355b00; float:left; width:457px;}
.product_title_pic01 { text-align:center; float:left; width:120px; height:90px; padding-top:10px; }
.product_title_pic { background:url(../images/product01.gif) no-repeat; width:75px; height:75px; margin:auto; }
.product_title_pic02 {float:left; width:384px; color:#355b00; padding-top:20px;}
.product_title_pic02 a{color:#355b00; padding-top:20px;}
.product_title_pic03 { float:left; width:80px; color:#355b00; padding-top:20px;}
/* --------------------------------------------------------------- 企业产品展示页 -----------------------------------------------------------------*/
.product_view {width:585px; margin:auto; text-align:center; height:100%;}
.product_view_image { margin-top:20px; width:120px; float:left; padding-left:20px; }
.product_view_img {background:url(../images/product01.gif) no-repeat; width:75px; height:75px; margin:auto; }
.product_view_title { margin-top:20px; width:400px; text-align:left; padding-left:20px; float:left; }
.product_view_text { font-size:12px; color:#555555; margin:auto; line-height:20px; }
.product_view_title01 {background:url(../images/right_titlebg.gif) repeat-x; height:29px; margin-top:5px; float:left; width:585px; height:29px; font-size:12px; color:#355b00; font-weight:bold; text-indent:20px; line-height:29px; border-top:1px solid #dee7ca; }
.product_view_font { padding:20px 0px 0px 30px; line-height:25px; }
/* --------------------------------------------------------------- 企业在线订单 -----------------------------------------------------------------*/
.product_form {width:585px; margin:auto; text-align:center; margin-bottom:50px;}
.product_form_label { background-color:#f5ffd5; border:1px solid #a3a561; height:19px; width:364px; color:#a3a561; }
.product_form_label01 { background-color:#f5ffd5; border:1px solid #a3a561; height:80px; width:364px; color:#a3a561; vertical-align:top; }
.product_form_text { text-align:left; padding:10px 0px 0px 20px; color:#355b00; }
.product_form_button { text-align:left; color:#355b00; margin-left:90px; }
| zyyhong | trunk/jiaju001/news/member/templets/company/css/style.css | CSS | asf20 | 12,222 |
公司简介:
<?php echo $cominfo['cominfo']; ?> | zyyhong | trunk/jiaju001/news/member/templets/company/cominfo.htm | HTML | asf20 | 51 |
供求信息:
<?php
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
$row['arcurl'] = GetFileUrl($row['ID'],$row['typeid'],$row['senddate'],
$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],
$row['typedir'],$row['money'],true,$row['siteurl']);
if($row['litpic']=="") $row['litpic'] = "img/dfpic.gif";
if($cfg_multi_site=='是'){
if(!eregi("^http://",$row['litpic'])){
$row['litpic'] = $cfg_mainsite.$row['litpic'];
}
}
?>
<table border='0' width='100%'>
<tr height='24'>
<td width='19%' rowspan="2" align="center">
<table width="100" border='0' cellpadding='1' cellspacing='1' bgcolor="#E6EAE3">
<tr>
<td bgcolor="#FFFFFF">
<a href='<?php echo $row['arcurl']?>' target='_blank'><img border='0' src='<?php echo $row['litpic']?>' width='100' alt='<?php echo $row['title']?>'></a>
</td>
</tr>
</table>
</td>
<td width='3%' align="center"><img src="img/file.gif" width="18" height="17"></td>
<td width='54%'><b><a href='<?php echo $row['arcurl']?>' target='_blank'><?php echo $row['title']?></a></b></td>
<td width="24%">点击:<?php echo $row['click']?></td>
</tr>
<tr>
<td height="56" colspan='3'> <?php echo $row['description']?><font color='#8F8C89'>(<?php echo strftime('%y-%m-%d %H:%M',$row['senddate'])?>)</font>
</td>
</tr>
<tr>
<td height='2' colspan='4' background='img/writerbg.gif'></td>
</tr>
</table>
<?php
}
?>
<?php echo $dlist->GetPageList(7);?>
<?php
$dlist->Close();
$dsql->Close();
?> | zyyhong | trunk/jiaju001/news/member/templets/company/info.htm | HTML | asf20 | 1,505 |
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>我的留言本</title>
<link href="company_style.css" rel="stylesheet" type="text/css">
<style>
.napisdiv {left:10;top:0;width:150;height:100;position:absolute;z-index:3}
</style>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>
<script language="JavaScript">
var pageno = 1;
var totalrow = <?php echo $totalRow?>;
var pagesize = <?php echo $pagesize?>;
var orderby = '<?php echo $orderby?>';
var selitem = 0;
//加载列表
function ReloadPage(ordertype){
orderby = ordertype;
var listArea = $Obj('rslist');
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]";
var myajax = new DedeAjax(listArea,true,true,"",errMsg,"正在加载...");
myajax.SendGet("comguestbook.php?dopost=getlist&pageno="+pageno+"&orderby="+ordertype);
}
//载入指定页的列表
function LoadPage(npage){
pageno = npage;
ReloadPage(orderby);
ReloadPageNum(pageno);
}
//删除留言
function DelNote(nid){
if(!window.confirm('你确定要删除这则留言吗?')){
return false;
}
var listArea = $Obj('rslist');
totalrow = totalrow - 1;
var pagenum = Math.ceil(totalrow/pagesize);
if(pagenum<=pageno) pageno = pagenum;
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]";
var myajax = new DedeAjax(listArea,true,true,"",errMsg,"正在处理...");
myajax.SendGet("comguestbook.php?dopost=del&aid="+nid+"&pageno="+pageno);
ReloadPageNum(pageno);
}
//获得选中文项的ID
function getCheckboxItem()
{
var allSel="";
selitem = 0;
if(document.form1.ids.value){
selitem++;
return document.form1.ids.value;
}
for(i=0;i<document.form1.ids.length;i++){
if(document.form1.ids[i].checked){
if(allSel=="") allSel=document.form1.ids[i].value;
else allSel=allSel+","+document.form1.ids[i].value;
selitem++;
}
}
return allSel;
}
//批量删除留言
function DelNotes(){
var listArea = $Obj('rslist');
var aids = getCheckboxItem();
if(selitem==0){
alert("你没选中任何内容!");
return false;
}
if(!window.confirm('你确定要删除这些留言吗?')){
return false;
}
totalrow = totalrow - selitem;
var pagenum = Math.ceil(totalrow/pagesize);
if(pagenum<=pageno) pageno = pagenum;
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('"+pageno+"')\"><u>点击此重新加载列表</u></a>]";
var myajax = new DedeAjax(listArea,true,true,"",errMsg,"正在处理...");
myajax.SendGet("comguestbook.php?dopost=del&ids="+aids+"&pageno="+pageno);
ReloadPageNum(pageno);
}
//重新加载分页列表
function ReloadPageNum(startnum){
var ListArea = $Obj('pagelist');
var pagenum = Math.ceil(totalrow/pagesize);
var listsize = 3;
var ahtml = "";
var startloop = 1;
var endnum = 0;
ahtml += "共:"+totalrow+" 条记录/"+pagenum+"页 ";
if(pageno>1) ahtml += "<a href='#' onclick='LoadPage("+(pageno-1)+")'>↑上页</a> ";
if(startnum >= pagenum-listsize){
startloop = pagenum-(listsize*2);
if(startloop<1) startloop = 1;
for(i=startloop;i<=pagenum;i++){
if(i==pageno) ahtml += i+" ";
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>["+i+"]</a> ";
}
}
else if(pagenum < listsize){
for(i=1;i<=pagenum;i++){
if(i==pageno) ahtml += i+" ";
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>["+i+"]</a> ";
}
}
else{
startloop = startnum-listsize;
if(startloop<1){ startloop=1; endnum = startloop + (listsize*2); }
else{ endnum = startnum+listsize; }
if(endnum >= pagenum) endnum = pagenum;
for(i=startloop;i<=endnum;i++){
if(i==pageno) ahtml += i+" ";
else ahtml += "<a href='#' onclick='LoadPage("+i+")'>["+i+"]</a> ";
}
}
if(pageno<pagenum) ahtml += "<a href='#' onclick='LoadPage("+(pageno+1)+")'>下页↓</a> ";
ListArea.innerHTML = ahtml;
}
</script>
</head>
<body leftmargin='0' topmargin='0'>
<div align="center">
<?php include(dirname(__FILE__)."/comhead.htm"); ?>
<table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="216" valign="top">
<?php include(dirname(__FILE__)."/commenu.php");?>
</td>
<td width="10"> </td>
<td valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:3px;margin-top:10px" >
<tr align="right" bgcolor="#ffffff">
<td height="25" colspan="6" background="img/nnnbg.gif" class="gdt">
<table width='100%' align="center" cellpadding='0' cellspacing='0' style="background:url(images/right_titlebg.gif) repeat-x;">
<tr>
<td width='30%' height="30" style="font-weight:700; color:#355b00;text-indent:30px;background:url(images/title01.gif) no-repeat 10px;">我的留言本:</td>
<td align='right' style="padding-right:20px;">
<input type="button" name="Submit" value="删除选中项" class="coolbg" onClick="DelNotes()">
</td>
</tr>
</table></td>
</tr>
</table>
<form name="form1">
<span id="rslist"><?php GetList($dsql,$pageno,$pagesize,'aid'); ?></span>
</form>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D9EDC0">
<tr height="24">
<td height="32" bgcolor="#F9FCEF" align="center">
<span id='pagelist'></span>
<script language='javascript'>
ReloadPageNum(1);
</script>
</td>
</tr>
</table></td>
</tr>
</table>
<?php include(dirname(__FILE__)."/foot.htm"); ?>
</div>
</body>
</html>
| zyyhong | trunk/jiaju001/news/member/templets/comguestbook.htm | HTML | asf20 | 5,969 |