Example #1
0
require MD_ROOT . '/comment.class.php';
$do = new comment();
$menus = array(array('评论列表', '?moduleid=' . $moduleid . '&file=' . $file), array('评论审核', '?moduleid=' . $moduleid . '&file=' . $file . '&action=check'), array('评论禁止', '?moduleid=' . $moduleid . '&file=' . $file . '&action=ban'), array('模块设置', '?moduleid=' . $moduleid . '&file=setting#' . $file));
$this_forward = '?moduleid=' . $moduleid . '&file=' . $file;
if (in_array($action, array('', 'check'))) {
    $sfields = array('内容', '原文标题', '会员名', 'IP', '原文ID', '评论ID');
    $dfields = array('content', 'item_title', 'username', 'ip', 'item_id', 'itemid');
    $sorder = array('结果排序方式', '添加时间降序', '添加时间升序', '回复时间降序', '回复时间升序', '引用次数降序', '引用次数升序', '支持次数降序', '支持次数升序', '反对次数降序', '反对次数升序', '评分高低降序', '评分高低升序');
    $dorder = array('itemid desc', 'addtime DESC', 'addtime ASC', 'replytime DESC', 'replytime ASC', 'quote DESC', 'quote ASC', 'agree DESC', 'agree ASC', 'against DESC', 'against ASC', 'star DESC', 'star ASC');
    $sstar = $L['star_type'];
    isset($fields) && isset($dfields[$fields]) or $fields = 0;
    isset($order) && isset($dorder[$order]) or $order = 0;
    isset($star) && isset($sstar[$star]) or $star = 0;
    isset($ip) or $ip = '';
    $fields_select = dselect($sfields, 'fields', '', $fields);
    $module_select = module_select('mid', '模块', $mid);
    $order_select = dselect($sorder, 'order', '', $order);
    $star_select = dselect($sstar, 'star', '', $star);
    $condition = '';
    if ($keyword) {
        $condition .= in_array($dfields[$fields], array('item_id', 'itemid', 'ip')) ? " AND {$dfields[$fields]}='{$kw}'" : " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
    }
    if ($mid) {
        $condition .= " AND item_mid='{$mid}'";
    }
    if ($ip) {
        $condition .= " AND ip='{$ip}'";
    }
    if ($star) {
        $condition .= " AND star='{$star}'";
    }
Example #2
0
api/redirect.php?itemid=<?php 
    echo $v['itemid'];
    ?>
&mid=<?php 
    echo $v['moduleid'];
    ?>
" target="_blank">点击打开</a></td>
</td>
</tr>
<?php 
}
?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
<td class="f_red">新增</td>
<td><?php 
echo module_select('post[0][moduleid]', '模块');
?>
</td>
<td><input name="post[0][itemid]" type="text" size="10" value=""/></td>
<td colspan="4"> </td>
</tr>
<tr>
<td> </td>
<td height="30" colspan="7">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value=" 更 新 " onclick="if(_del && !confirm('提示:您选择删除'+_del+'个禁止项目?确定要删除吗?')) return false;" class="btn"/></td>
</tr>
</table>
</form>
<div class="pages"><?php 
echo $pages;
?>
</div>
Example #3
0
>状态</option>
<option value="1"<?php 
if ($online == 1) {
    echo ' selected';
}
?>
>在线</option>
<option value="0"<?php 
if ($online == 0) {
    echo ' selected';
}
?>
>隐身</option>
</select>&nbsp;
<?php 
echo module_select('mid', '模块', $mid);
?>
&nbsp;
<?php 
echo $order_select;
?>
&nbsp;
<input type="text" name="psize" value="<?php 
echo $pagesize;
?>
" size="2" class="t_c" title="条/页"/>
<input type="submit" value="搜 索" class="btn"/>&nbsp;
<input type="button" value="重 置" class="btn" onclick="Go('?moduleid=<?php 
echo $moduleid;
?>
&file=<?php 
Example #4
0
    if ($k) {
        echo '<input name="place[typeid]" type="radio" value="' . $k . '" ' . ($k == 1 ? 'checked' : '') . ' id="p' . $k . '" onclick="sh(' . $k . ');"/> <label for="p' . $k . '">' . $v . '&nbsp;</label>';
    }
}
?>
</td>
</tr>
<tr id="wh" style="display:none">
<td class="tl"><span class="f_red">*</span> 广告位大小</td>
<td class="f_gray"><input name="place[width]" id="width" type="text" size="5" /> X <input name="place[height]" id="height" type="text" size="5" /> [宽 X 高 px] <span id="dsize" class="f_red"></span>
</td>
</tr>
<tr id="md" style="display:none">
<td class="tl"><span class="f_red">*</span> 所属模块</td>
<td><?php 
echo module_select('place[moduleid]', '请选择', 0, 'id="mids"');
?>
 <span id="dmids" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 广告位价格</td>
<td><input name="place[price]" type="text" size="5" /> <?php 
echo $unit;
?>
/月 <span class="f_gray">[0或不填表示待议]</span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 默认广告代码</td>
<td><textarea name="place[code]" id="code" style="width:98%;height:50px;overflow:visible;font-family:Fixedsys,verdana;"></textarea><br/>
<input type="button" value=" 运行代码 " class="btn" onclick="runcode();"/><span class="f_gray">&nbsp;当广告位下无广告时,显示此代码,支持html、css、js 如果广告位采用js调用,此处不建议使用js代码</span><span id="dcode" class="f_red"></span></td>
</tr>
Example #5
0
defined('IN_DESTOON') or exit('Access Denied');
login();
require DT_ROOT . '/module/' . $module . '/common.inc.php';
require DT_ROOT . '/include/post.func.php';
$condition = "username='******'";
switch ($action) {
    case 'pay':
        $MODULE[-9]['name'] = $L['resume_name'];
        $MODULE[-9]['islink'] = 0;
        $MODULE[-9]['linkurl'] = $MODULE[9]['linkurl'];
        isset($fromtime) or $fromtime = '';
        isset($totime) or $totime = '';
        isset($dfromtime) or $dfromtime = '';
        isset($dtotime) or $dtotime = '';
        isset($currency) or $currency = '';
        $module_select = module_select('mid', $L['module_name'], $mid);
        if ($keyword) {
            $condition .= " AND title LIKE '%{$keyword}%'";
        }
        if ($fromtime) {
            $condition .= " AND paytime>" . strtotime($fromtime . ' 00:00:00');
        }
        if ($totime) {
            $condition .= " AND paytime<" . strtotime($totime . ' 23:59:59');
        }
        if ($mid) {
            $condition .= " AND moduleid={$mid}";
        }
        if ($itemid) {
            $condition .= " AND itemid={$itemid}";
        }