• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP type_select函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中type_select函数的典型用法代码示例。如果您正苦于以下问题:PHP type_select函数的具体用法?PHP type_select怎么用?PHP type_select使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了type_select函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: switch_tool

function switch_tool()
{
    global $vars, $event, $step, $tools;
    extract(gpsa($vars));
    pagetop(gTxt('txp_import'), '');
    ?>

<script type="text/javascript">
<!--//
function showHideFields($sel)
{
	if(document.getElementById){
		document.getElementById('mtblogid').style.display = ($sel=='mtdb') ? 'block': 'none';
		document.getElementById('wponly').style.display =  ($sel=='wp') ? 'block': 'none';
		document.getElementById('databased').style.display = ($sel=='wp' || $sel=='mtdb' || $sel=='b2')? 'block':'none';
	}
}
//-->
</script>

<?php 
    $content = startTable('edit');
    $content .= tr(tdcs(hed(gTxt('txp_import'), 3), 2));
    //Select tool
    $content .= tr(fLabelCell('select_tool', 'import', 'from') . td(tag(type_options($tools), 'select', " name=\"import_tool\" onchange=\"showHideFields(this.value);\""), '', 'from'), ' class="import-from"');
    //Some data we collect
    $content .= tr(fLabelCell('import_section', 'import_section', 'section') . td(import_section_popup(''), '', 'section'), ' class="import-section"');
    $status_options = array(4 => gTxt('live'), 1 => gTxt('draft'), 2 => gTxt('hidden'), 3 => gTxt('pending'));
    $content .= tr(fLabelCell('import_status', 'import_status', 'status') . td(type_select($status_options), '', 'status'), ' class="import-status"');
    $content .= tr(fLabelCell('import_invite', 'import_invite', 'comment-invite') . td(fInput('text', 'comments_invite', gTxt('comments'), 'edit'), '', 'comment-invite'), ' class="import-comment"');
    //DataBase imports only
    $databased = tr(tdcs(hed(gTxt('database_stuff'), 3), 2)) . tr(fLabelCell('import_database', 'import_database', 'database') . td(fInput('text', 'importdb', '', 'edit'), '', 'database'), ' class="import-database"') . tr(fLabelCell('import_login', 'import_login', 'login') . td(fInput('text', 'importdblogin', '', 'edit'), '', 'login'), ' class="import-login"') . tr(fLabelCell('import_password', 'import_password', 'password') . td(fInput('text', 'importdbpass', '', 'edit'), '', 'password'), ' class="import-password"') . tr(fLabelCell('import_host', 'import_host', 'host') . td(fInput('text', 'importdbhost', '', 'edit'), '', 'host'), ' class="import-host"');
    //Ugly, but a way to present a clean screen with only required fields
    //while we keep JavaScript code at minimum
    $content .= tr(tda(tag($databased, 'table', ' id="databased" style="display: none; border: none;"'), ' colspan="2"'));
    //MT-DB Specific
    $mtblogid = tr(fLabelCell('import_blogid', 'import_blogid', 'blog-id') . td(fInput('text', 'blog_id', '', 'edit'), '', 'blog-id'), ' class="import-blog-id"');
    $content .= tr(tda(tag($mtblogid, 'table', ' id="mtblogid" style="display: none;  border: none;"'), ' colspan="2"'));
    //WordPress specific option
    $wponly = tr(fLabelCell('import_wpprefix', 'import_wpprefix', 'wp-prefix') . td(fInput('text', 'wpdbprefix', 'wp_', 'edit'), '', 'wp-prefix'), ' class="import-wp-prefix"');
    $content .= tr(tda(tag($wponly, 'table', ' id="wponly" style="display: none;  border: none;"'), ' colspan="2"'));
    $content .= endTable();
    $content .= tag(fInput('submit', 'choose', gTxt('continue'), 'publish'), 'p', ' style="text-align:center"');
    $content .= sInput('start_import') . eInput('import');
    echo '<div id="' . $event . '_container" class="txp-container txp-edit">' . form($content, '', '', 'post', '', '', 'import') . '</div>';
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:46,代码来源:txp_import.php


示例2: type_select

echo $forward;
?>
"/>
<input type="hidden" name="itemid" value="<?php 
echo $itemid;
?>
"/>
<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><span id="type_box"><?php 
echo type_select('announce', 1, 'post[typeid]', '请选择分类', $typeid, 'id="typeid"');
?>
</span> <a href="javascript:var type_item='announce',type_name='post[typeid]',type_default='请选择分类',type_id=<?php 
echo $typeid;
?>
,type_interval=setInterval('type_reload()',500);Dwidget('?file=type&item=<?php 
echo $file;
?>
', '公告分类');"><img src="<?php 
echo $MODULE[2]['linkurl'];
?>
image/img_add.gif" width="12" height="12" title="管理分类"/></a> <span id="dtypeid" 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="50" value="<?php 
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:announce_edit.tpl.php


示例3: type_select

echo $action;
?>
"/>
<input type="hidden" name="itemid" value="<?php 
echo $itemid;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 邮件分类</td>
<td><?php 
echo type_select('mail', 1, 'typeid', '请选择分类', $typeid, 'id="typeid"');
?>
 <img src="<?php 
echo $MODULE[2]['linkurl'];
?>
image/img_add.gif" width="12" height="12" title="管理分类" class="c_p" onclick="Dwidget('?file=type&item=<?php 
echo $file;
?>
', '订阅分类');"/> <span id="dtypeid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 邮件标题</td>
<td><input type="text" size="60" name="title" id="title" value="<?php 
echo $title;
?>
"/> <span id="dtitle" class="f_red"></span></td>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:mail_edit.tpl.php


示例4: is_array

        $itemids = is_array($itemid) ? $itemid : array($itemid);
        foreach ($itemids as $itemid) {
            $do->itemid = $itemid;
            $item = $do->get_one();
            if (!$item || $item['username'] != $_username) {
                message();
            }
            $do->recycle($itemid);
        }
        dmsg($L['op_del_success'], $forward);
        break;
    default:
        $status = isset($status) ? intval($status) : 3;
        in_array($status, array(1, 2, 3)) or $status = 3;
        $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
        $type_select = type_select($TYPE, 0, 'typeid', $L['default_type'], $typeid, '', $L['all_type']);
        $condition = "username='{$_username}' AND status={$status}";
        if ($keyword) {
            $condition .= " AND title LIKE '%{$keyword}%'";
        }
        if ($typeid > -1) {
            $condition .= " AND typeid={$typeid}";
        }
        $lists = $do->get_list($condition);
        foreach ($lists as $k => $v) {
            $lists[$k]['type'] = $lists[$k]['typeid'] && isset($TYPE[$lists[$k]['typeid']]) ? set_style($TYPE[$lists[$k]['typeid']]['typename'], $TYPE[$lists[$k]['typeid']]['style']) : $L['default_type'];
        }
        $head_title = $L['news_title'];
        break;
}
$nums = array();
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:news.inc.php


示例5: send_mail

         send_mail($r['email'], $m['title'], $m['content']);
         $i = true;
         $num++;
     }
     if ($i) {
         $page++;
         msg('已发送 ' . $num . ' 封邮件,系统将自动继续,请稍候...', '?moduleid=' . $moduleid . '&file=' . $file . '&action=' . $action . '&page=' . $page . '&itemid=' . $itemid . '&num=' . $num);
     } else {
         cache_delete($_username . '_mail.php');
         $db->query("UPDATE {$DT_PRE}mail SET sendtime='{$DT_TIME}' WHERE itemid={$itemid}");
         msg('邮件发送成功 共发送 ' . $num . ' 封邮件', '?moduleid=' . $moduleid . '&file=' . $file, 5);
     }
     break;
 default:
     $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
     $type_select = type_select($TYPE, 1, 'typeid', '请选择分类', $typeid);
     $condition = '1';
     if ($keyword) {
         $condition .= " AND title LIKE '%{$keyword}%'";
     }
     if ($typeid > 0) {
         $condition .= " AND typeid={$typeid}";
     }
     if ($page > 1 && $sum) {
         $items = $sum;
     } else {
         $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}mail WHERE {$condition}");
         $items = $r['num'];
     }
     $pages = pages($items, $page, $pagesize);
     $mails = array();
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:mail.inc.php


示例6: message

        break;
    case 'delete':
        $itemid or message($L['news_msg_choose']);
        $do->itemid = $itemid;
        $r = $do->get_one();
        if (!$r || $r['username'] != $_username) {
            message();
        }
        $do->recycle($itemid);
        dmsg($L['op_del_success'], $forward);
        break;
    default:
        $status = isset($status) ? intval($status) : 3;
        in_array($status, array(1, 2, 3)) or $status = 3;
        $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
        $type_select = type_select('news-' . $_userid, 0, 'typeid', $L['default_type'], $typeid, '', $L['all_type']);
        $condition = "username='{$_username}' AND status={$status}";
        if ($keyword) {
            $condition .= " AND title LIKE '%{$keyword}%'";
        }
        if ($typeid > -1) {
            $condition .= " AND typeid={$typeid}";
        }
        $lists = $do->get_list($condition);
        foreach ($lists as $k => $v) {
            $lists[$k]['type'] = $lists[$k]['typeid'] && isset($TYPE[$lists[$k]['typeid']]) ? set_style($TYPE[$lists[$k]['typeid']]['typename'], $TYPE[$lists[$k]['typeid']]['style']) : $L['default_type'];
        }
        $head_title = $L['news_title'];
        break;
}
$nums = array();
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:news.inc.php


示例7: msg

     $itemid or msg('请选择信息');
     $typeid = intval($typeid);
     $do->type($itemid, $typeid);
     dmsg('分类设置成功', $forward);
     break;
 default:
     $sfields = array('标题', '简介', '会员名');
     $dfields = array('title', 'introduce', 'username');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     $level = isset($level) ? intval($level) : 0;
     $typeid = isset($typeid) ? intval($typeid) : 0;
     $thumb = isset($thumb) ? intval($thumb) : 0;
     $itemid or $itemid = '';
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $level_select = level_select('level', '级别', $level);
     $type_select = type_select($tid, 0, 'typeid', '默认', $typeid);
     $condition = "specialid={$specialid}";
     if ($keyword) {
         $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
     }
     if ($level) {
         $condition .= " AND level={$level}";
     }
     if ($typeid) {
         $condition .= " AND typeid={$typeid}";
     }
     if ($thumb) {
         $condition .= " AND thumb<>''";
     }
     if ($itemid) {
         $condition .= " AND itemid={$itemid}";
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:item.inc.php


示例8: dmsg

     $do->delete($itemid);
     dmsg('删除成功', $forward);
     break;
 case 'level':
     $itemid or msg('请选择公告');
     $level = intval($level);
     $do->level($itemid, $level);
     dmsg('级别设置成功', $forward);
     break;
 default:
     $sorder = array('结果排序方式', '添加时间降序', '添加时间升序', '浏览次数降序', '浏览次数升序', '开始时间降序', '开始时间升序', '到期时间降序', '到期时间升序');
     $dorder = array('listorder DESC,addtime DESC', 'addtime DESC', 'addtime ASC', 'hits DESC', 'hits ASC', 'fromtime DESC', 'fromtime ASC', 'totime DESC', 'totime ASC');
     isset($order) && isset($dorder[$order]) or $order = 0;
     isset($typeid) or $typeid = 0;
     $level = isset($level) ? intval($level) : 0;
     $type_select = type_select('announce', 1, 'typeid', '请选择分类', $typeid);
     $order_select = dselect($sorder, 'order', '', $order);
     $level_select = level_select('level', '级别', $level);
     $condition = '1';
     if ($_areaids) {
         $condition .= " AND areaid IN (" . $_areaids . ")";
     }
     //CITY
     if ($keyword) {
         $condition .= " AND title LIKE '%{$keyword}%'";
     }
     if ($typeid) {
         $condition .= " AND typeid={$typeid}";
     }
     if ($level) {
         $condition .= " AND level={$level}";
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:announce.inc.php


示例9: credit_add

         $credit = $s * $MOD['credit_refresh'];
         credit_add($_username, -$credit);
         credit_record($_username, -$credit, 'system', lang($L['credit_record_refresh'], array($MOD['name'])), lang($L['refresh_total'], array($s)));
     }
     $msg = lang($L['refresh_success'], array($s));
     if ($f) {
         $msg = $msg . ' ' . lang($L['refresh_fail'], array($f));
     }
     dmsg($msg, $forward);
     break;
 default:
     $status = isset($status) ? intval($status) : 3;
     in_array($status, array(1, 2, 3, 4)) or $status = 3;
     $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
     $mycatid = isset($mycatid) ? $mycatid === '' ? -1 : intval($mycatid) : -1;
     $mycat_select = type_select('product-' . $_userid, 0, 'mycatid', $L['type_default'], $mycatid, '', $L['type_my']);
     $condition = "username='{$_username}' AND status={$status}";
     if ($keyword) {
         $condition .= " AND keyword LIKE '%{$keyword}%'";
     }
     if ($catid) {
         $condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}";
     }
     if ($typeid >= 0) {
         $condition .= " AND typeid={$typeid}";
     }
     if ($mycatid >= 0) {
         $condition .= " AND mycatid IN (" . type_child($mycatid, $MTYPE) . ")";
     }
     $timetype = strpos($MOD['order'], 'add') !== false ? 'add' : '';
     $lists = $do->get_list($condition, $MOD['order']);
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:my.inc.php


示例10: message

     $itemid or message($L['favorite_msg_choose']);
     $do->itemid = $itemid;
     $r = $do->get_one();
     if (!$r || $r['userid'] != $_userid) {
         message();
     }
     $do->delete($itemid);
     dmsg($L['op_del_success'], $forward);
     break;
 default:
     $sfields = $L['favorite_sfields'];
     $dfields = array('title', 'title', 'url', 'note');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $type_select = type_select('favorite-' . $_userid, 0, 'typeid', $L['default_type'], $typeid, '', $L['all_type']);
     $condition = "userid={$_userid}";
     if ($keyword) {
         $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
     }
     if ($typeid > -1) {
         $condition .= " AND typeid={$typeid}";
     }
     $lists = $do->get_list($condition);
     if ($MG['favorite_limit']) {
         $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}favorite WHERE userid={$_userid}");
         $limit_used = $r['num'];
         $limit_free = $MG['favorite_limit'] > $limit_used ? $MG['favorite_limit'] - $limit_used : 0;
     }
     $head_title = $L['favorite_title'];
     break;
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:favorite.inc.php


示例11: type_select

?>
"/>
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="<?php 
echo $action;
?>
"/>
<div class="tt">安装模板</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_hid">*</span> 模板分类</td>
<td><?php 
echo type_select('style', 1, 'post[typeid]', '请选择分类', 0, 'id="typeid"');
?>
 <span id="dtypeid" 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="30" /> <span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 风格目录</td>
<td>
<select name="post[skin]" id="skin" onchange="if(this.value){Dskin(this.value);}">
<option value="">请选择</option>
<?php 
$d = DT_ROOT . '/' . $MODULE[4]['moduledir'] . '/skin/';
foreach (glob($d . '*') as $v) {
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:style_add.tpl.php


示例12: clear_upload

         }
         clear_upload($content);
         $content = dsafe(addslashes(save_remote(save_local(stripslashes($content)))));
         $fields = array('typeid' => $typeid, 'title' => $title);
         $fields = dhtmlspecialchars($fields);
         $fields['content'] = $content;
         $sql = '';
         foreach ($fields as $k => $v) {
             $sql .= ",{$k}='{$v}'";
         }
         $sql = substr($sql, 1);
         $db->query("UPDATE {$DT_PRE}ask SET {$sql} WHERE itemid={$itemid} AND username='{$_username}' ");
         dmsg($L['op_edit_success'], $forward);
     } else {
         extract($r);
         $type_select = type_select('ask', 1, 'typeid', $L['choose_type'], $typeid);
         $head_title = $L['ask_title_edit'];
     }
     break;
 case 'show':
     $itemid or message();
     $r = $db->get_one("SELECT * FROM {$DT_PRE}ask WHERE itemid={$itemid} AND username='{$_username}'");
     $r or message();
     extract($r);
     $addtime = timetodate($addtime, 5);
     $admintime = $admintime ? timetodate($admintime, 5) : '';
     $stars = $L['ask_star_type'];
     $head_title = $L['ask_title_show'];
     break;
 case 'star':
     $itemid or message();
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:ask.inc.php


示例13: type_select

</td>
</tr>
<?php 
    }
} else {
    ?>
<tr>
<td colspan="6" class="f_red">&nbsp;&nbsp;没有找到可用的信息,请重新筛选</td>
</tr>
<?php 
}
?>
<tr>
<td colspan="6">&nbsp;&nbsp;
<?php 
echo type_select($tid, 0, 'typeid', '请选择分类', 0, 'id="typeid"');
?>
&nbsp;&nbsp;
 <?php 
echo level_select('level', '级别', 0, 'id="level"');
?>
&nbsp;&nbsp;
<input type="submit" name="submit" value=" 添 加 " class="btn"/></td>
</tr>
</table>
</form>
<div class="pages"><?php 
echo $pages;
?>
</div>
<script type="text/javascript">Menuon(1);</script>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:item_batch.tpl.php


示例14: array

     break;
 default:
     $sfields = array('按条件', '模板名称', '风格目录', '模板目录', '作者');
     $dfields = array('title', 'title', 'skin', 'template', 'author');
     $sorder = array('结果排序方式', '模板价格降序', '模板价格升序', $DT['money_name'] . '收益降序', $DT['money_name'] . '收益升序', $DT['credit_name'] . '收益降序', $DT['credit_name'] . '收益升序', '使用人数降序', '使用人数升序', '添加时间降序', '添加时间升序');
     $dorder = array('listorder DESC,addtime DESC', 'fee DESC', 'fee ASC', 'money DESC', 'money ASC', 'credit DESC', 'credit ASC', 'hits DESC', 'hits ASC', 'addtime DESC', 'addtime ASC');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     isset($order) && isset($dorder[$order]) or $order = 0;
     $groupid = isset($groupid) ? intval($groupid) : 0;
     $typeid = isset($typeid) ? intval($typeid) : 0;
     isset($currency) or $currency = '';
     isset($minfee) or $minfee = '';
     isset($maxfee) or $maxfee = '';
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $order_select = dselect($sorder, 'order', '', $order);
     $type_select = type_select('style', 1, 'typeid', '请选择分类', $typeid);
     $condition = '1';
     if ($keyword) {
         $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
     }
     if ($groupid) {
         $condition .= " AND groupid LIKE '%,{$groupid},%'";
     }
     if ($typeid) {
         $condition .= " AND typeid={$typeid}";
     }
     if ($currency) {
         $condition .= $currency == 'free' ? " AND fee=0" : " AND currency='{$currency}'";
     }
     if ($minfee) {
         $condition .= " AND fee>={$minfee}";
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:style.inc.php


示例15: array

 $pagesize = 12;
 $offset = ($page - 1) * $pagesize;
 $sfields = $L['style_sfields'];
 $dfields = array('title', 'title', 'author');
 $sorder = $L['style_sorder'];
 $dorder = array('listorder desc,addtime desc', 'addtime DESC', 'addtime ASC', 'hits DESC', 'hits ASC');
 isset($fields) && isset($dfields[$fields]) or $fields = 0;
 isset($order) && isset($dorder[$order]) or $order = 0;
 $all = isset($all) ? intval($all) : 0;
 $typeid = isset($typeid) ? intval($typeid) : 0;
 isset($currency) or $currency = '';
 $minfee = isset($minfee) ? dround($minfee) : '';
 $maxfee = isset($maxfee) ? dround($maxfee) : '';
 $fields_select = dselect($sfields, 'fields', '', $fields);
 $order_select = dselect($sorder, 'order', '', $order);
 $type_select = type_select('style', 1, 'typeid', $L['choose_type'], $typeid);
 $condition = "1";
 if ($keyword) {
     $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
 }
 if (!$all) {
     $condition .= " AND groupid LIKE '%,{$_groupid},%'";
 }
 if ($typeid) {
     $condition .= " AND typeid={$typeid}";
 }
 if ($currency) {
     $condition .= $currency == 'free' ? " AND fee=0" : " AND currency='{$currency}'";
 }
 if ($minfee) {
     $condition .= " AND fee>={$minfee}";
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:style.inc.php


示例16: foreach

<td class="tl"><span class="f_hid">*</span> 选择信息源</td>
<td><select id="s_mid" onchange="if(this.value){select_item(this.value, 'special');$('#s_mid').val(0);}">
<option value="0">请选择</option>
<?php 
foreach ($MODULE as $m) {
    if (!$m['islink'] && $m['moduleid'] > 3 && $m['moduleid'] != $moduleid) {
        echo '<option value="' . $m['moduleid'] . '">' . $m['name'] . '</option>';
    }
}
?>
</select></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 所属分类</td>
<td><span id="type_box"><?php 
echo type_select($tid, 0, 'post[typeid]', '请选择分类', $typeid, 'id="typeid"');
?>
</span> <a href="javascript:var type_item='<?php 
echo $tid;
?>
',type_name='post[typeid]',type_default='请选择分类',type_id=<?php 
echo $typeid;
?>
,type_interval=setInterval('type_reload()',500);Dwidget('?file=type&item=<?php 
echo $tid;
?>
', '[<?php 
echo $special['title'];
?>
] 专题信息分类', 550, 250);"><img src="<?php 
echo $MODULE[2]['linkurl'];
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:item_edit.tpl.php


示例17: tpl

         }
         $lists = $do->item_list($condition, $dorder[$order]);
         include tpl('poll_item', $module);
     }
     break;
 default:
     $sfields = array('按条件', '标题', '内容');
     $dfields = array('title', 'title', 'content');
     $sorder = array('结果排序方式', '添加时间降序', '添加时间升序', '投票总数降序', '投票总数升序', '浏览次数降序', '浏览次数升序', '选项总数降序', '选项总数升序', '开始时间降序', '开始时间升序', '到期时间降序', '到期时间升序');
     $dorder = array('itemid DESC', 'addtime DESC', 'addtime ASC', 'polls DESC', 'polls ASC', 'hits DESC', 'hits ASC', 'items DESC', 'items ASC', 'fromtime DESC', 'fromtime ASC', 'totime DESC', 'totime ASC');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     isset($order) && isset($dorder[$order]) or $order = 0;
     isset($typeid) or $typeid = 0;
     $level = isset($level) ? intval($level) : 0;
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $type_select = type_select('poll', 1, 'typeid', '请选择分类', $typeid);
     $order_select = dselect($sorder, 'order', '', $order);
     $level_select = level_select('level', '级别', $level);
     $condition = '1';
     if ($_areaids) {
         $condition .= " AND areaid IN (" . $_areaids . ")";
     }
     //CITY
     if ($keyword) {
         $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
     }
     if ($typeid) {
         $condition .= " AND typeid IN (" . type_child($typeid, $TYPE) . ")";
     }
     if ($level) {
         $condition .= " AND level={$level}";
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:poll.inc.php


示例18: type_select

echo $action;
?>
"/>
<input type="hidden" name="itemid" value="<?php 
echo $itemid;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 邮件分类</td>
<td><span id="type_box"><?php 
echo type_select($TYPE, 1, 'typeid', '请选择分类', $typeid, 'id="typeid"');
?>
</span> <a href="javascript:var type_item='mail',type_name='post[typeid]',type_default='请选择分类',type_id=<?php 
echo $typeid;
?>
,type_interval=setInterval('type_reload()',500);Dwidget('?file=type&item=mail', '订阅分类');"><img src="<?php 
echo $MODULE[2]['linkurl'];
?>
image/img_add.gif" width="12" height="12" title="管理分类"/></a> <span id="dtypeid" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 邮件标题</td>
<td><input type="text" size="60" name="title" id="title" value="<?php 
echo $title;
?>
"/> <span id="dtitle" class="f_red"></span></td>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:mail_edit.tpl.php


示例19: account_select

 case ACCOUNT_PICK:
     include_once "lib/callback/account.php";
     account_select($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case TYPE_DISP:
     type_send($SCION, $response);
     $SCION->status = TYPE_PICK;
     echo $response;
     break 2;
     //break out
 //break out
 case TYPE_PICK:
     type_select($SCION, $response);
     $SCION->status = array_shift($SCION->path);
     break 1;
     //go back around
 //go back around
 case DATE_DISP:
     include_once "lib/callback/date_list.php";
     date_send($SCION, $response);
     $SCION->status = DATE_PICK;
     echo $response;
     break 2;
     //break out
 //break out
 case DATE_PICK:
     include_once "lib/callback/date_list.php";
     date_select($SCION, $response);
开发者ID:fortyspokes,项目名称:ProjectLogs,代码行数:31,代码来源:expenselog.php


示例20: type_select

?>
"/>
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="<?php 
echo $action;
?>
"/>
<div class="tt">安装模板</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_hid">*</span> 模板分类</td>
<td><?php 
echo type_select($TYPE, 1, 'post[typeid]', '请选择分类', 0, 'id="typeid"');
?>
 <span id="dtypeid" 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="30" /> <span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 风格目录</td>
<td>
<select name="post[skin]" id="skin" onchange="if(this.value){Dskin(this.value);}">
<option value="">请选择</option>
<?php 
$d = DT_ROOT . '/' . $MODULE[4]['moduledir'] . '/skin/';
foreach (glob($d . '*') as $v) {
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:style_add.tpl.php



注:本文中的type_select函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP type_to_str函数代码示例发布时间:2022-05-23
下一篇:
PHP type_options函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap