コード例 #1
0
ファイル: #list.php プロジェクト: jiangsuei8/public_php_shl
</tbody>
</table>
<div class="page"><?php 
echo pagination::html($record_count);
?>
</div>
</div>

<div class="blank10"></div>
<input type="hidden" name="batch" value="">

<input  class="btn_a" type="button" value=" 排序 " name="order" onclick="this.form.action='<?php 
echo modify('act/batch', true);
?>
'; this.form.batch.value='order'; this.form.submit();"/>
&nbsp;&nbsp;
移动分类:<?php 
echo form::select('typeid', 0, type::option());
?>
&nbsp;
<input  class="btn_b" type="button" value=" 移动 " name="delete" onclick="if(getSelect(this.form) && confirm('确实要移动ID为('+getSelect(this.form)+')的类吗?')){this.form.action='<?php 
echo modify('act/batch', true);
?>
'; this.form.batch.value='move'; this.form.submit();}"/>
</form>





コード例 #2
0
ファイル: archive.php プロジェクト: jiangsuei8/public_php_shl
    function get_form() {
        return array(
                'catid'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(category::option(0,'tolast')),
                        'default'=>intval(get('catid')),
                        'regex'=>'/\d+/',
                        'filter'=>'is_numeric',
                ),
                'typeid'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(type::option(0,'tolast')),
                        'default'=>intval(get('typeid')),
                        'regex'=>'/\d+/',
                        'filter'=>'is_numeric',
                ),
				'toppost'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(array(0=>'不置顶',2=>'栏目置顶',3=>'全站置顶')),
                        'default'=>0,
                        'regex'=>'/\d+/',
                        'filter'=>'is_numeric',
                ),
                'ishtml'=>array(
                        'selecttype'=>'radio',
                        'select'=>form::arraytoselect(array(0=>'继承',1=>'生成',2=>'不生成')),
                ),
                'checked'=>array(
                        'selecttype'=>'radio',
                        'select'=>form::arraytoselect(form::yesornotoarray('审核')),
                ),
                'image'=>array(
                        'filetype'=>'image',
                ),
                'thumb'=>array(
                        'filetype'=>'thumb',
                ),
                'displaypos'=>array(
                        'selecttype'=>'checkbox',
                        //'select'=>form::arraytoselect(array(1=>'首页推荐',2=>'首页焦点',3=>'首页头条',4=>'列表页推荐',5=>'内容页推荐')),
                ),
                'htmlrule'=>array(
                        //'tips'=>" 默认:{?category::gethtmlrule(get('id'),'showhtmlrule')}",
                ),
                'template'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(front::$view->archive_tpl_list('archive/show')),
                        //'tips'=>" 默认:{?category::gettemplate(get('id'),'showtemplate')}",
                ),
                'showform'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(get_my_tables_list()),
                        'default'=>"0",
                ),
                'introduce_len'=>array(
                        'default'=>config::get('archive_introducelen')
                ),
                'attr1'=>array(
                        'selecttype'=>'checkbox',
                        'select'=>form::arraytoselect($this->getattrs(1)),
                ),
                'grade'=>array(
                        'selecttype'=>'radio',
                        'select'=>form::arraytoselect(array(0,1,2,3,4,5)),
                ),
                'pics'=>array(
                        'filetype'=>'image2',
                ),
                'author'=>array(
                        'tips'=>' ',
                ),
                'attr3'=>array(
                        'tips'=>' ',
                ),
                'htmlrule'=>array(
                        'selecttype'=>'select',
                        'select'=>form::arraytoselect(getHtmlRule('archive')),
                        'default'=>'',
                ),
        		'tag_option'=>array(
        				'selecttype'=>'select',
        				'select'=>form::arraytoselect(tag::getTags()),
        		),
        );
    }
コード例 #3
0
ファイル: #list.php プロジェクト: jiangsuei8/public_php_shl
?>
	<div class="blank20"></div>

 <div style="float:left;width:560px;margin-left:10px;overflow:hidden;">
     <form name="searchform" id="searchform"  action="<?php 
echo uri();
?>
" method="post">

            栏目
            <?php 
echo form::select('search_catid', get('search_catid') ? get('search_catid') : 0, category::option());
?>
            分类
            <?php 
echo form::select('search_typeid', get('search_typeid') ? get('search_typeid') : 0, type::option());
?>
            标题
            <input type="text" name="search_title" id="search_title" value="" style="width:140px;overflow:hidden;" />

            <input type="submit" value="搜索" name="submit"  onclick="this.form.action='<?php 
echo url::modify('table/' . get('table') . '/type/search');
?>
'" class="btn_e" />



            <div class="blank5"></div>
            地区
            <?php 
echo form::select('search_province_id', get('search_province_id') ? get('search_province_id') : 0, area::province_option());
コード例 #4
0
ファイル: type.php プロジェクト: jiangsuei8/public_php_shl
 function get_form() {
     return array(
             'parentid'=>array(
                     'selecttype'=>'select',
                     'select'=>form::arraytoselect(type::option(0,'isnotlast')),
                     'default'=>get('parentid'),
             ),
             'thumb'=>array(
                     'filetype'=>'thumb',
             ),
             'ishtml'=>array(
                     'selecttype'=>'radio',
                     'select'=>form::arraytoselect(array(0=>'继承',1=>'生成',2=>'不生成')),
                     'default'=>0,
             ),
             'isshow'=>array(
                     'selecttype'=>'radio',
                     'select'=>form::arraytoselect(array(1=>'正常显示',0=>'禁用')),
                     'default'=>1,
             ),
             'ispages'=>array(
                     'selecttype'=>'radio',
                     'select'=>form::arraytoselect(array(1=>'分页',0=>'单页')),
                     'default'=>1,
             ),
             'includecatarchives'=>array(
                     'selecttype'=>'radio',
                     'select'=>form::arraytoselect(array(1=>'包含',0=>'不包含')),
                     'default'=>1,
             ),
             'stype'=>array(
                     'tips'=>"&nbsp;被调用的格式 type(\$typeid,'标记')",
             ),
             'htmlrule'=>array(
                     'tips'=>" 默认:{?type::gethtmlrule(get('id'))}",
             		'selecttype'=>'select',
             		'select'=>form::arraytoselect(getTypeHtmlRule('type')),
             		'default'=>'',
             ),
             'listhtmlrule'=>array(
                     'tips'=>" 默认:{?type::gethtmlrule(get('id'),'listhtmlrule')}",
             		'selecttype'=>'select',
             		'select'=>form::arraytoselect(getTypeHtmlRule('type')),
             		'default'=>'',
             ),
             'showhtmlrule'=>array(
                     'tips'=>" 默认:{?type::gethtmlrule(get('id'),'showhtmlrule')}",
             ),
             'image'=>array(
                     'filetype'=>'image1',
             ),
             'template'=>array(
                     'selecttype'=>'select',
                     'select'=>form::arraytoselect(front::$view->archive_tpl_list('type/list')),
                     'default'=>"{?type::gettemplate(get('id'),'listtemplate',false)}",
                     'tips'=>" 默认:{?type::gettemplate(get('id'))}",
             ),
             'listtemplate'=>array(
                     'selecttype'=>'select',
                     'select'=>form::arraytoselect(front::$view->archive_tpl_list('type/list')),
                     'default'=>"{?type::gettemplate(get('id'),'listtemplate',false)}",
                     'tips'=>" 默认:{?type::gettemplate(get('id'),'listtemplate')}",
             ),
     );
 }
コード例 #5
0
ファイル: list.php プロジェクト: jiangsuei8/public_php_shl
<span class="hotspot" onmouseover="tooltip.show('管理本分类下内容');" onmouseout="tooltip.hide();"><a href="<?php echo modify("/act/list/table/archive/typeid/$d1[$primary_key]");?>" class="a_management"></a></span>	

<span class="hotspot" onmouseover="tooltip.show('确定要删除吗?');" onmouseout="tooltip.hide();"><a onclick="javascript: return confirm('确实要删除吗?');" href="<?php echo modify("/act/delete/table/$table/id/$d1[$primary_key]");?>" class="a_del"></a></span>
</td>
</tr>

{/loop}  
              
<?php } unset($d1);unset($data1);unset($data11);?>
            
{/loop}

</tbody>
</table>
<div class="page"><?php echo pagination::html($record_count); ?></div>
</div>

<div class="blank10"></div>
<input type="hidden" name="batch" value="">

<input  class="btn_a" type="button" value=" 排序 " name="order" onclick="this.form.action='<?php echo modify('act/batch',true);?>'; this.form.batch.value='order'; this.form.submit();"/>
&nbsp;&nbsp;
移动分类:<?php echo form::select('typeid',0,type::option());?>&nbsp;
<input  class="btn_b" type="button" value=" 移动 " name="delete" onclick="if(getSelect(this.form) && confirm('确实要移动ID为('+getSelect(this.form)+')的类吗?')){this.form.action='<?php echo modify('act/batch',true);?>'; this.form.batch.value='move'; this.form.submit();}"/>
</form>





コード例 #6
0
ファイル: manage.php プロジェクト: jiangsuei8/public_php_shl
<div id="tagscontent" class="right_box">

<!--form name="searchform" id="searchform"  action="<?php echo uri();?>" method="post">
<table border="0" cellspacing="2" cellpadding="4" class="list" name="table1" id="table1">
<thead>
<tr>
<th  colspan="11">
内容管理<?php if(front::get('deletestate')) {?>(回收站)<?php } ?>
</th></tr>
</thead>
<tbody>
<tr>
<td colspan="10">
<table><tr><td>
类别:</td><td>
<?php echo form::select('_typeid',get('_typeid')?get('_typeid'):0,type::option()); ?>
</td><td>
标题:</td><td>
<input type="text" name="_title" id="_title" value=""  /></td><td>
<input type="submit" value="搜索" name="submit"  onclick="this.form.action='{url::modify('table/'.get('table'))}'" class="button"/>
</td></tr>
</tbody>
</table></td>
<td width="200">
<a href="index.php?case=table&act=add&table=archive&admin_dir={get('admin_dir')}" class="button">添加内容</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="{url::modify("table/".get('table')."/deletestate/1/page/1")}" class="button">回收站</a>
</td>
</tr>

</tbody>

</form-->
コード例 #7
0
  $tag_config['thumb'] = 0;
  }
 */
$tplarray=include(ROOT.'/template/'.config::get('template_dir').'/tpltag/tag.config.php');
$tplarray=$tplarray['content'];
$tag_config=$data['setting'];
?>


        <?php
        echo "<tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">栏目<td width="1%">&nbsp;</td><td width="70%">'.form::select('catid', $tag_config['catid'], category::option());
        echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">子栏目<td width="1%">&nbsp;</td><td width="70%">'.form::select('son', $tag_config['son'], array("否","是"));
		echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">分类<td width="1%">&nbsp;</td><td width="70%">'.form::select('typeid', $tag_config['typeid'], type::option());
         echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">专题<td width="1%">&nbsp;</td><td width="70%">'.form::select('spid', $tag_config['spid'], special::option());
         echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">地区<td width="1%">&nbsp;</td><td width="70%">';
        echo form::select('province_id', $tag_config['province_id'], area::province_option());
        echo form::select('city_id', $tag_config['city_id'], area::city_option());
        echo form::select('section_id', $tag_config['section_id'], area::section_option());
         echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">标题截取字数<td width="1%">&nbsp;</td><td width="70%">';
        echo form::input('length', $tag_config['length'], 'class="input_c"');
		echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
		echo '<td width="19%" align="right">简介截取字数<td width="1%">&nbsp;</td><td width="70%">';
        echo form::input('introduce_length', $tag_config['introduce_length'], 'class="input_c"').'-1:不限制 0:不调用';
        echo "</td></tr><tr onmouseover=this.bgColor='#FFFFF0'; onmouseout=this.bgColor=''; bgcolor=''>";
        echo '<td width="19%" align="right">排序方式<td width="1%">&nbsp;</td><td width="70%">';
コード例 #8
0
<?php

defined('ROOT') or exit('Can\'t Access !');
?>
<div id="tagscontent" class="right_box">

<form name="typeform" method="post" action="<?php 
echo front::$uri;
?>
">
<table border="0" cellspacing="0" cellpadding="0" name="table1" id="table1" width="100%">
<tbody>
<tr>
<td width="19%" align="right">分类</span></td>
<td width="1%">&nbsp;</td>
                        <td width="70%"><?php 
$archive = archive::getInstance();
echo form::select('typeid', get('typeid'), type::option());
?>
&nbsp;&nbsp;
<?php 
echo form::submit('更新');
?>
    </td></tr></tbody>
</table>
</form>
</div>