Ejemplo n.º 1
0
	  <?php 
echo $strAutoSplitLogs;
?>
	  <INPUT TYPE="text" NAME="addautoSplit" size="4" onKeyPress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false; " onKeyup="seekform.elements['operation'][11].checked=true;" value="<?php 
echo $settingInfo['autoSplit'];
?>
"> <?php 
echo $strSettingUnitsWords;
?>
	  |
	  <input type="radio" name="operation" value="logmove" onclick="Javascript:this.form.opmethod.value=1">
	  <?php 
echo $strLogCategoryMove;
?>
	  <?php 
category_select("move_category", "", "class=\"searchbox\" onchange=\"seekform.elements['operation'][12].checked=true;\"", "");
?>
	  |
	  <input type="radio" name="operation" value="addpassword" onclick="Javascript:this.form.opmethod.value=1">
	  <?php 
echo $strLogPassword;
?>
	  <INPUT TYPE="text" NAME="addpassword" size="10" maxlength="20" onKeyup="seekform.elements['operation'][13].checked=true;">
	  |
	  <input type="radio" name="operation" value="editdate" onclick="Javascript:this.form.opmethod.value=1">
	  <?php 
echo $strPubDate;
?>
	  <input name="pubTime" type="text" value="<?php 
echo format_time("Y-m-d H:i", time());
?>
Ejemplo n.º 2
0
	  <br>
	  <?php 
}
?>

	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
		<tr class="subcontent-input">
		  <td class="subcontent-td">
			&nbsp;&nbsp;<input type=radio name='autocate' value="1" checked>&nbsp;<?php 
echo $strRssImportOption3;
?>
			&nbsp;&nbsp;<input type=radio name='autocate' value="0">&nbsp;<?php 
echo $strRssImportOption4;
?>
			&nbsp;<?php 
category_select("rssCate", "", "class=\"searchbox\" onchange=\"seekform.elements['autocate'][1].checked=true;\"", "rss");
?>
		  </td>
		</tr>
		<tr class="subcontent-input">
		  <td class="subcontent-td">
			&nbsp;&nbsp;<input type=radio name='curtime' value="0" checked>&nbsp;<?php 
echo $strRssImportOption8;
?>
			&nbsp;&nbsp;<input type=radio name='curtime' value="1">&nbsp;<?php 
echo $strRssImportOption9;
?>
		  </td>
		</tr>
		<tr class="subcontent-input">
		  <td class="subcontent-td">
Ejemplo n.º 3
0
	  </div>
	  </fieldset>
	  <br>
	  <?php 
}
?>
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
		<tr class="subcontent-input">
		  <td class="subcontent-td" align="right" nowrap>
			<?php 
echo $strCategory;
?>
		  </td>
		  <td class="subcontent-td">
			&nbsp;&nbsp;<?php 
category_select("rssCate", "", "class=\"searchbox\"", "");
?>
		  </td>
		</tr>
		<tr class="subcontent-input">
		  <td class="subcontent-td" align="right" nowrap>
			<?php 
echo $strDataBackupName;
?>
		  </td>
		  <td class="subcontent-td">
			&nbsp;&nbsp;<input name="backup" type="text" size="45" maxlength="30" value="<?php 
echo format_time("Y-m-d", time()) . "-" . md5(time());
?>
">
		  </td>
Ejemplo n.º 4
0
</td>
</tr>
</table>
</form>
<form method="post">
<div class="tt">分段生成</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<th>选择分类</th>
<th width="200">每轮生成数量</th>
<th width="200">操作</th>
</tr>
<tr align="center">
<td>
<?php 
echo category_select('catid', '选择分类', 0, $moduleid);
?>
&nbsp;&nbsp;&nbsp;&nbsp;
第 <input type="text" size="3" name="fpage" value="1"/> 页 至 <input type="text" size="3" name="tpage" value=""/> 页
</td>
<td><input type="text" size="5" name="num" value="100"/></td>
<td>
<input type="submit" value=" 生成列表 " class="btn" onclick="this.form.action='?moduleid=<?php 
echo $moduleid;
?>
&file=<?php 
echo $file;
?>
&action=cate';"/>&nbsp;
<input type="submit" value=" 生成内容 " class="btn" onclick="this.form.action='?moduleid=<?php 
echo $moduleid;
Ejemplo n.º 5
0
<option value="totime" <?php 
if ($datetype == 'totime') {
    echo 'selected';
}
?>
>到期日期</option>
</select>&nbsp;
<?php 
echo dcalendar('fromdate', $fromdate, '');
?>
 至 <?php 
echo dcalendar('todate', $todate, '');
?>
&nbsp;
<?php 
echo category_select('catid', '所属行业', $catid, $moduleid);
?>
&nbsp;
<?php 
echo ajax_area_select('areaid', '所在地区', $areaid);
?>
&nbsp;
<?php 
echo VIP;
?>
:<input type="text" size="4" name="minvip" value="<?php 
echo $minvip;
?>
"/> ~ <input type="text" size="4" name="maxvip" value="<?php 
echo $maxvip;
?>
Ejemplo n.º 6
0
    echo $CATEGORY[$parentid]['parentid'];
    ?>
');"/>
<?php 
}
?>
</div>
</form>
<form method="post" action="?">
<div class="tt">快捷操作</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr align="center">
<td>
<div style="float:left;padding:10px;">
<?php 
echo category_select('cid', '分类结构', $parentid, $mid, 'size="2" style="width:200px;height:130px;"');
?>
</div>
<div style="float:left;padding:10px;">
	<table>
	<tr>
	<td><input type="submit" value="管理分类" class="btn" onclick="this.form.action='?mid=<?php 
echo $mid;
?>
&file=<?php 
echo $file;
?>
&parentid='+Dd('catid_1').value;"/></td>
	</tr>
	<tr>
	<td><input type="submit" value="添加分类" class="btn" onclick="this.form.action='?mid=<?php 
			<?php 
echo $strAttachmentTypeText;
?>
			</option>
			<option value="mp3,wma,wmv,rm,ra,rmvb,wav,asf,swf,flv" <?php 
echo $seektype == "mp3,wma,wmv,rm,ra,rmvb,wav,asf,swf" ? "selected" : "";
?>
>
			<?php 
echo $strAttachmentTypeMp3;
?>
			</option>
		  </select>
		  &nbsp;
		  <?php 
category_select("seekcate", $seekcate, "class=\"searchbox\"", "");
?>
		  &nbsp;
		  <?php 
echo $strBlueFind;
?>
		  &nbsp;
		  <input type="text" name="seekname" size="8" value="<?php 
echo $seekname;
?>
" class="searchbox">
		  &nbsp;
		  <input name="find" class="btn" type="submit" value="<?php 
echo $strFind;
?>
" onclick="confirm_submit('<?php 
Ejemplo n.º 8
0
        continue;
    }
    $m['rssurl'] = $MOD['feed_url'] . 'rss.php?mid=' . $m['moduleid'];
    $FD[] = $m;
}
$areaid = isset($areaid) ? intval($areaid) : 0;
$feed_code = '';
$category_select = '';
$area_select = '';
if ($mid && $mid > 4 && isset($MODULE[$mid]) && !$MODULE[$mid]['islink']) {
    $feed_code .= $MOD['feed_url'] . 'rss.php?mid=' . $mid;
    if ($kw == $L['keyword']) {
        $kw = '';
    }
    if ($kw && strlen($kw) > 2 && strlen($kw) < 30) {
        $feed_code .= '&kw=' . urlencode($kw);
    }
    if ($catid) {
        $feed_code .= '&catid=' . urlencode($catid);
    }
    if ($areaid) {
        $feed_code .= '&areaid=' . urlencode($areaid);
    }
    $category_select = category_select('catid', $L['category'], $catid, $mid);
    if (in_array($MODULE[$mid]['module'], array('sell', 'buy', 'exhibit', 'info', 'job'))) {
        $area_select = ajax_area_select('areaid', $L['rss_area'], $areaid);
    }
}
$head_title = $L['rss_title'];
$head_keywords = $head_description = '';
include template('feed', $module);
Ejemplo n.º 9
0
" onClick="document.getElementById('category').innerHTML='<input name=cateId size=20 class=textbox type=text size=50>';document.getElementById('btncategory').style.display='none';document.seekform.cateId.focus();document.getElementById('btnrcategory').style.display='';">
			<input name="btnrcategory" id="btnrcategory" class="btn" type="button" value="<?php 
echo $strReturn;
?>
" onClick="document.getElementById('category').innerHTML=document.seekform.catebak.value;document.getElementById('btnrcategory').style.display='none';document.seekform.cateId.focus();document.getElementById('btncategory').style.display='';" style="display:none">
			<input name="oldCateId" type="hidden" size="50" value="<?php 
echo $oldCateId;
?>
">
			<input name="edittype" id="edittype" type="hidden" size="50" value="<?php 
echo $edittype;
?>
">
			<input name="catebak" id="catebak" type="hidden" value="<?php 
ob_start();
category_select("cateId", $cateId, "", "");
$contents = ob_get_contents();
ob_end_clean();
echo str_replace('"', '', $contents);
?>
">
		  </td>
		</tr>
		<tr>
		  <td nowrap>
			<?php 
echo $strTag;
?>
		  </td>
		  <td>
			<input name="tags" id="tags" class="textbox" type="text" size="50" value="<?php 
Ejemplo n.º 10
0
echo $itemid;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
<div class="tt"><?php 
echo $tname;
?>
</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 所属分类</td>
<td><?php 
echo category_select('post[catid]', '选择分类', $catid, $moduleid);
?>
 <span id="dcatid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> <?php 
echo $MOD['name'];
?>
标题</td>
<td><input name="post[title]" type="text" id="title" size="60" value="<?php 
echo $title;
?>
"/> <?php 
echo level_select('post[level]', '级别', $level, 'id="level"');
?>
 <?php 
Ejemplo n.º 11
0
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td>&nbsp;
<select name="mid">
<option value="0">请选择</option>
<?php 
foreach ($MODULE as $m) {
    if (!$m['islink'] && $m['moduleid'] > 4 && $m['moduleid'] != $moduleid) {
        echo '<option value="' . $m['moduleid'] . '"' . ($mid == $m['moduleid'] ? ' selected' : '') . '>' . $m['name'] . '</option>';
    }
}
?>
</select>&nbsp;
<?php 
if ($mid) {
    echo category_select('catid', '请选择分类', $catid, $mid) . '&nbsp;';
}
?>
<input type="text" size="50" name="kw" value="<?php 
echo $kw;
?>
" title="关键词"/>&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 
			</script>
		
			<input type="hidden" name="action" value="<?php echo $action; ?>" />
			<input type="hidden" name="g" value="<?php echo $group_id; ?>" />

			<table class="tablebg" width="99%" cellspacing="1" cellpadding="4" border="0" align="center">
			<tr>
				<th colspan="2"><?php echo $_CLASS['core_user']->lang[strtoupper($action) . '_EXTENSION_GROUP']; ?></th>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['GROUP_NAME']; ?>: </b></td>
				<td class="row2"><input type="text" size="20" maxlength="100" name="group_name" class="post" value="<?php echo $group_name; ?>" /></td>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['SPECIAL_CATEGORY']; ?>: </b><br /><span class="gensmall"><?php echo $_CLASS['core_user']->lang['SPECIAL_CATEGORY_EXPLAIN']; ?></span></td>
				<td class="row2"><?php echo category_select('special_category', $group_id); ?></td>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['ALLOWED']; ?>: </b></td>
				<td class="row2"><input type="checkbox" name="allow_group" value="<?php echo $group_id; ?>"<?php echo $s_allowed; ?> /></td>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['ALLOW_IN_PM']; ?>: </b></td>
				<td class="row2"><input type="checkbox" name="allow_in_pm" value="1"<?php echo $s_in_pm_allowed; ?> /></td>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['DOWNLOAD_MODE']; ?>: </b><br /><span class="gensmall"><?php echo $_CLASS['core_user']->lang['DOWNLOAD_MODE_EXPLAIN']; ?></span></td>
				<td class="row2"><?php echo download_select('download_mode', $group_id); ?></td>
			</tr>
			<tr>
				<td class="row1" width="35%"><b><?php echo $_CLASS['core_user']->lang['UPLOAD_ICON']; ?>: </b></td>
Ejemplo n.º 13
0
              |
              <input type="radio" name="operation" value="tbshow" onclick="Javascript:this.form.opmethod.value=1">
              <?php 
echo $strTrackBackShow;
?>
              <input type="radio" name="operation" value="tbhidden" onclick="Javascript:this.form.opmethod.value=1">
              <?php 
echo $strTrackBackHidden;
?>
              | <br>
              <input type="radio" name="operation" value="logmove" onclick="Javascript:this.form.opmethod.value=1">
              <?php 
echo $strLogCategoryMove;
?>
              <?php 
category_select("move_category", "", "class=\"searchbox\" onchange=\"seekform.operation(9).checked=true;\"");
?>
              |
              <input type="radio" name="operation" value="addpassword" onclick="Javascript:this.form.opmethod.value=1">
              <?php 
echo $strLogPassword;
?>
              <INPUT TYPE="text" NAME="addpassword" size="10" onKeyup="seekform.operation(10).checked=true;">
              |
			  <input type="radio" name="operation" value="settags" onclick="Javascript:this.form.opmethod.value=1">
              <?php 
tags_select("settags", "class=\"searchbox\"", "onchange=\"seekform.operation(11).checked=true;\"");
?>
              |
              <input name="opselect" type="hidden" value="">
              <input name="opmethod" type="hidden" value="1">
Ejemplo n.º 14
0
echo $itemid;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
<div class="tt"><?php 
echo $action == 'add' ? '添加' : '修改';
?>
产品</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 所属分类</td>
<td><?php 
echo $_admin == 1 ? category_select('post[catid]', '选择分类', $catid, $moduleid) : ajax_category_select('post[catid]', '选择分类', $catid, $moduleid);
?>
 <span id="dcatid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 产品名称</td>
<td><input name="post[title]" type="text" id="title" size="40" value="<?php 
echo $title;
?>
"/> <?php 
echo level_select('post[level]', '级别', $level);
?>
 <?php 
echo dstyle('post[style]', $style);
?>
 <span id="dtitle" class="f_red"></span></td>
Ejemplo n.º 15
0
<option value="addtime" <?php 
if ($datetype == 'addtime') {
    echo 'selected';
}
?>
>发布日期</option>
</select>&nbsp;
<?php 
echo dcalendar('fromdate', $fromdate, '');
?>
 至 <?php 
echo dcalendar('todate', $todate, '');
?>
&nbsp;
<?php 
echo category_select('catid', '不限分类', $catid, $moduleid);
?>
 &nbsp;
<?php 
echo ajax_area_select('areaid', '不限地区', $areaid);
?>
&nbsp;
ID:<input type="text" size="4" name="itemid" value="<?php 
echo $itemid;
?>
"/>&nbsp;
<input type="checkbox" name="thumb" value="1"<?php 
echo $thumb ? ' checked' : '';
?>
/>图片&nbsp;
<input type="checkbox" name="guest" value="1"<?php 
Ejemplo n.º 16
0
?>
"/>
<input type="hidden" name="mid" value="<?php 
echo $mid;
?>
"/>
<input type="hidden" name="catid" value="<?php 
echo $catid;
?>
"/>
<div class="tt">分类修改</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_hid">*</span> 上级分类</td>
<td><?php 
echo category_select('category[parentid]', '请选择', $parentid, $mid);
tips('如果不选择,则为顶级分类');
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 分类名称</td>
<td><input name="category[catname]" type="text" id="catname" size="20" value="<?php 
echo $catname;
?>
"/> <?php 
echo dstyle('category[style]', $style);
?>
 <span id="dcatname" class="f_red"></span></td>
</tr>
<tr>
Ejemplo n.º 17
0
?>
ID</label>
</td>
<td></td>
<td>&nbsp;目标分类</td>
</tr>
<tr>
<td width="220" align="center" title="多个ID用,分开 结尾和开头不能有,">
<textarea style="height:300px;width:200px;" name="fromids"><?php 
echo $itemid;
?>
</textarea>
</td>
<td width="60" align="center"><strong>&rarr;</strong></td>
<td id="tocatids"><?php 
echo category_select('tocatid', '', 0, $moduleid, 'size="2" style="height:300px;width:150px;"');
?>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;<a href="###" onclick="showid()" class="t">[分类ID查询]</a></td>
<td> </td>
<td><input type="submit" name="submit" value=" 移 动 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></td>
</tr>
</table>
</div>
</form>
<script type="text/javascript">
function showid() {
	if($('#tocatids').html().indexOf('ID') == -1) {
		$('#tocatids').find('option').each(function(i){
Ejemplo n.º 18
0
?>
"/>
<div class="tt">属性复制</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 复制方式</td>
<td>
	<input type="radio" name="type" value="1" id="t1" onclick="Ds('f1');Dh('f2');" checked/> <label for="t1">批量</label>&nbsp;&nbsp;
	<input type="radio" name="type" value="0" id="t2" onclick="Ds('f2');Dh('f1');"/> <label for="t2">单项</label>
</td>
</tr>
<tr id="f1" style="display:;">
<td class="tl"><span class="f_red">*</span> 来源分类</td>
<td>
<?php 
echo category_select('fromid', '选择分类', $CAT['parentid'], $CAT['moduleid'], 'size="2" style="width:200px;height:130px;"');
?>
<span id="dfromid" class="f_red"></span>
</td>
</tr>
<tr id="f2" style="display:none;">
<td class="tl"><span class="f_red">*</span> 属性ID</td>
<td><input type="text" size="10" name="pid" id="pid"/><span id="dpid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 同名过滤</td>
<td>
	<input type="radio" name="name" value="1" id="n1" checked/> <label for="n1">是</label>&nbsp;&nbsp;
	<input type="radio" name="name" value="0" id="n2"/> <label for="n2">否</label>
</td>
</tr>
Ejemplo n.º 19
0
$CP = $MOD['cat_property'] && $catid && $CAT['property'];
if (!$areaid && $cityid && strpos($DT_URL, 'areaid') === false) {
    $areaid = $cityid;
    $ARE = $AREA[$cityid];
}
$sfields = array($L['by_auto'], $L['by_title'], $L['by_content'], $L['by_introduce']);
$dfields = array('keyword', 'title', 'content', 'introduce');
$sorder = array($L['order'], $L['order_auto'], $L['order_addtime'], $L['order_hits']);
$dorder = array($MOD['order'], '', 'addtime DESC', 'hits DESC');
if (!$MOD['fulltext']) {
    unset($sfields[2], $dfields[2]);
}
isset($fields) && isset($dfields[$fields]) or $fields = 0;
isset($order) && isset($dorder[$order]) or $order = 0;
$order_select = dselect($sorder, 'order', '', $order);
$category_select = category_select('catid', $L['all_category'], $catid, $moduleid);
$area_select = $DT['city'] ? ajax_area_select('areaid', $L['all_area'], $areaid) : '';
$tags = array();
if ($DT_QST) {
    if ($kw) {
        if (strlen($kw) < $DT['min_kw'] || strlen($kw) > $DT['max_kw']) {
            message(lang($L['word_limit'], array($DT['min_kw'], $DT['max_kw'])), $MOD['linkurl'] . 'search.php');
        }
        if ($DT['search_limit'] && $page == 1) {
            if ($DT_TIME - $DT['search_limit'] < get_cookie('last_search')) {
                message(lang($L['time_limit'], array($DT['search_limit'])), $MOD['linkurl'] . 'search.php');
            }
            set_cookie('last_search', $DT_TIME);
        }
    }
    $pptsql = '';
Ejemplo n.º 20
0
<option value="addtime" <?php 
if ($datetype == 'addtime') {
    echo 'selected';
}
?>
>发布日期</option>
</select>&nbsp;
<?php 
echo dcalendar('fromdate', $fromdate, '');
?>
 至 <?php 
echo dcalendar('todate', $todate, '');
?>
&nbsp;
<?php 
echo $_admin == 1 ? category_select('catid', '不限分类', $catid, $moduleid) : ajax_category_select('catid', '不限分类', $catid, $moduleid);
?>
&nbsp;
<?php 
echo $DT['city'] ? ajax_area_select('areaid', '不限地区', $areaid) . '&nbsp;' : '';
?>
ID:<input type="text" size="4" name="itemid" value="<?php 
echo $itemid;
?>
"/>&nbsp;
</td>
</tr>
</table>
</form>
<form method="post">
<div class="tt"><?php 
Ejemplo n.º 21
0
echo $maxcredit;
?>
"/>&nbsp;
短信:<input type="text" size="3" name="minsms" value="<?php 
echo $minsms;
?>
"/> ~ <input type="text" size="3" name="maxsms" value="<?php 
echo $maxsms;
?>
"/>&nbsp;
</td>
</tr>
<tr>
<td>&nbsp;
<?php 
echo category_select('catid', '所属行业', $catid, 4);
?>
&nbsp;
<?php 
echo ajax_area_select('areaid', '所在地区', $areaid);
?>
&nbsp;
<?php 
echo $mode_select;
?>
&nbsp;
<?php 
echo $type_select;
?>
&nbsp;
<?php 
Ejemplo n.º 22
0
    $db->sql_freeresult($result);
    for ($i = 0; $i < $num_extension_group; $i++) {
        // Format the filesize
        if (!$extension_group[$i]['max_filesize']) {
            $extension_group[$i]['max_filesize'] = $attach_config['max_filesize'];
        }
        $size_format = $extension_group[$i]['max_filesize'] >= 1048576 ? 'mb' : ($extension_group[$i]['max_filesize'] >= 1024 ? 'kb' : 'b');
        if ($extension_group[$i]['max_filesize'] >= 1048576) {
            $extension_group[$i]['max_filesize'] = round($extension_group[$i]['max_filesize'] / 1048576 * 100) / 100;
        } else {
            if ($extension_group[$i]['max_filesize'] >= 1024) {
                $extension_group[$i]['max_filesize'] = round($extension_group[$i]['max_filesize'] / 1024 * 100) / 100;
            }
        }
        $s_allowed = $extension_group[$i]['allow_group'] == 1 ? 'checked="checked"' : '';
        $template->assign_block_vars('grouprow', array('GROUP_ID' => $extension_group[$i]['group_id'], 'EXTENSION_GROUP' => $extension_group[$i]['group_name'], 'UPLOAD_ICON' => $extension_group[$i]['upload_icon'], 'S_ALLOW_SELECTED' => $s_allowed, 'S_SELECT_CAT' => category_select('category_list[]', $extension_group[$i]['group_id']), 'S_DOWNLOAD_MODE' => download_select('download_mode_list[]', $extension_group[$i]['group_id']), 'S_FILESIZE' => size_select('size_select_list[]', $size_format), 'MAX_FILESIZE' => $extension_group[$i]['max_filesize'], 'CAT_BOX' => $viewgroup == $extension_group[$i]['group_id'] ? $lang['Decollapse'] : $lang['Collapse'], 'U_VIEWGROUP' => $viewgroup == $extension_group[$i]['group_id'] ? append_sid("admin_extensions.{$phpEx}?mode=groups") : append_sid("admin_extensions.{$phpEx}?mode=groups&" . POST_GROUPS_URL . "=" . $extension_group[$i]['group_id']), 'U_FORUM_PERMISSIONS' => append_sid("admin_extensions.{$phpEx}?mode={$mode}&amp;e_mode=perm&amp;e_group=" . $extension_group[$i]['group_id'])));
        if ($viewgroup && $viewgroup == $extension_group[$i]['group_id']) {
            $sql = 'SELECT comment, extension 
				FROM ' . EXTENSIONS_TABLE . '
				WHERE group_id = ' . (int) $viewgroup;
            if (!($result = $db->sql_query($sql))) {
                message_die(GENERAL_ERROR, 'Couldn\'t get Extension informations', '', __LINE__, __FILE__, $sql);
            }
            $extension = $db->sql_fetchrowset($result);
            $num_extension = $db->sql_numrows($result);
            $db->sql_freeresult($result);
            for ($j = 0; $j < $num_extension; $j++) {
                $template->assign_block_vars('grouprow.extensionrow', array('EXPLANATION' => $extension[$j]['comment'], 'EXTENSION' => $extension[$j]['extension']));
            }
        }
    }
Ejemplo n.º 23
0
<input type="hidden" name="ids" value="<?php 
echo $ids;
?>
"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 推送模块</td>
<td class="f_b">&nbsp;<?php 
echo $MODULE[$aid]['name'];
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 选择分类</td>
<td>&nbsp;<?php 
echo category_select('catid', '请选择分类', 0, $aid);
?>
</td>
</tr>
<tr>
<td class="tl">提示信息</td>
<td>&nbsp;系统会自动丢弃已经推送过的新闻</td>
</tr>
<tr>
<td class="tl">&nbsp;</td>
<td>&nbsp;<input type="submit" name="submit" value=" 确 定 " class="btn"/>&nbsp;&nbsp;<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/></td>
</tr>
</table>
</form>
<script type="text/javascript">Menuon(1);</script>
<?php