当前位置: 首页>>代码示例>>PHP>>正文


PHP dstyle函数代码示例

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


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

示例1: dstyle

?>
 <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 name="post[title]" type="text" id="title" size="50" value="<?php 
echo $title;
?>
"/> <?php 
echo dstyle('post[style]', $style);
?>
&nbsp; <?php 
echo level_select('post[level]', '级别', $level);
?>
 <span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 投票有效期</td>
<td><?php 
echo dcalendar('post[fromtime]', $fromtime);
?>
 至 <?php 
echo dcalendar('post[totime]', $totime);
?>
 <?php 
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:vote_edit.tpl.php

示例2: dstyle

    ?>
</a>&nbsp;</td>

<td>
<input name="post[<?php 
    echo $v['areaid'];
    ?>
][name]" type="text" value="<?php 
    echo $v['name'];
    ?>
" style="width:100px;color:<?php 
    echo $v['style'];
    ?>
"/>
<?php 
    echo dstyle('post[' . $v['areaid'] . '][style]', $v['style']);
    ?>
</td>
<td><input name="post[<?php 
    echo $v['areaid'];
    ?>
][domain]" type="text" value="<?php 
    echo $v['domain'];
    ?>
" size="30"/></td>

<td>
<a href="?file=<?php 
    echo $file;
    ?>
&action=edit&areaid=<?php 
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:city.tpl.php

示例3: dstyle

    echo $v['parentid'];
    ?>
"/></td>
<td>
<input name="category[<?php 
    echo $v['catid'];
    ?>
][catname]" type="text" value="<?php 
    echo $v['catname'];
    ?>
" style="width:100px;color:<?php 
    echo $v['style'];
    ?>
"/>
<?php 
    echo dstyle('category[' . $v['catid'] . '][style]', $v['style']);
    ?>
</td>
<td><input name="category[<?php 
    echo $v['catid'];
    ?>
][catdir]" type="text" value="<?php 
    echo $v['catdir'];
    ?>
" size="10"/></td>
<td>
<input name="category[<?php 
    echo $v['catid'];
    ?>
][letter]" type="text" value="<?php 
    echo $v['letter'];
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:category.tpl.php

示例4: dstyle

<td><input name="right[<?php 
    echo $v['adminid'];
    ?>
][url]" type="text" size="60" value="<?php 
    echo $v['url'];
    ?>
"/></td>
</tr>
<?php 
}
?>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
<td class="f_red">新增</td>
<td><input name="right[0][listorder]" type="text" size="3" value=""/></td>
<td><input name="right[0][title]" type="text" size="12" value="" id="p_title"/> <?php 
echo dstyle('right[0][style]');
?>
</td>
<td><input name="right[0][url]" type="text" size="60" value="" id="p_url"/>
</td>
</tr>
<tr>
<td height="30"> </td>
<td colspan="4">
&nbsp;
<input type="submit" name="submit" value="更 新" class="btn"/>&nbsp;
<select onchange="if(this.value){Dd('p_title').value=this.options[selectedIndex].innerHTML;Dd('p_url').value=this.value;}" style="width:120px;">
<option value="">常用操作</option>
<?php 
foreach ($MODULE as $m) {
    if ($m['islink']) {
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:admin_right.tpl.php

示例5: defined

<?php

defined('IN_DESTOON') or exit('Access Denied');
login();
require DT_ROOT . '/module/' . $module . '/common.inc.php';
require DT_ROOT . '/include/post.func.php';
isset($item) or message();
$names = $L['type_names'];
isset($names[$item]) or message();
require DT_ROOT . '/include/type.class.php';
$do = new dtype();
$do->item = $item . '-' . $_userid;
if ($submit) {
    if ($MG['type_limit'] && $type[0]['typename'] && count($type) > $MG['type_limit']) {
        dalert(lang($L['type_msg_limit'], array($MG['type_limit'])), 'goback');
    }
    $do->update($type);
    dmsg($L['op_update_success'], '?item=' . $item);
} else {
    $head_title = lang($L['type_title'], array($names[$item]));
    $types = $do->get_list();
    foreach ($types as $k => $v) {
        $types[$k]['style_select'] = dstyle('type[' . $v['typeid'] . '][style]', $v['style']);
    }
    $new_style = dstyle('type[0][style]');
    include template('type', $module);
}
开发者ID:hcd2008,项目名称:destoon,代码行数:27,代码来源:type.inc.php

示例6: dstyle

<tr>
<th width="40"><input type="checkbox" onclick="checkall(this.form);" title="全选/反选"/></th>
<th>排序</th>
<th>标题</th>
<th>链接</th>
<th>简介</th>
<th>图片</th>
<th colspan="2">票数</th>
<th>记录</th>
</tr>
<tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center">
<td class="f_red">新增</td>
<td><input name="post[0][listorder]" type="text" size="3" value="0"/></td>
<td><input name="post[0][title]" type="text" size="15"/>
<?php 
echo dstyle('post[0][style]');
?>
</td>
<td><input name="post[0][linkurl]" type="text" size="15"/> ..</td>
<td><input name="post[0][introduce]" type="text" size="15"/></td>
<td><input name="post[0][thumb]" type="text" size="15" id="thumb"/>&nbsp;&nbsp;<span onclick="Dthumb(<?php 
echo $moduleid;
?>
,<?php 
echo $P['thumb_width'];
?>
,<?php 
echo $P['thumb_height'];
?>
, Dd('thumb').value);" class="jt"><img src="<?php 
echo $MODULE[2]['linkurl'];
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:poll_item.tpl.php

示例7: category_select

<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>
<td class="tl"><span class="f_red">*</span> 分类目录</td>
<td><input name="category[catdir]" type="text" id="catdir" size="20" value="<?php 
echo $catdir;
?>
"/><?php 
tips('限英文、数字、中划线、下划线、斜线,该分类相关的html文件将保存在此目录');
?>
 <span id="dcatdir" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 字母索引</td>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:category_edit.tpl.php

示例8: Dd

, Dd('upload').value, 'upload');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="if(Dd('upload').value) window.open(Dd('upload').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('upload').value='';" class="jt">[删除]</span><?php 
    tips('从这里上传文件后,把地址复制到代码里即可使用');
    ?>
</td>
</tr>
<?php 
}
if ($p['typeid'] == 2) {
    ?>
<tr>
<td class="tl"><span class="f_red">*</span> 链接文字</td>
<td class="f_gray"><input type="text" size="60" name="ad[text_name]" id="text_name" value="<?php 
    echo $text_name;
    ?>
"/> <?php 
    echo dstyle('ad[text_style]', $text_style);
    ?>
 [支持HTML语法] <span id="dtext_name" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 链接地址</td>
<td><input type="text" size="60" name="ad[text_url]" id="text_url" value="<?php 
    echo $text_url;
    ?>
"/> <span id="dtext_url" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> Title提示</td>
<td><input type="text" size="60" name="ad[text_title]" value="<?php 
    echo $text_title;
    ?>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:ad_edit.tpl.php

示例9: Dd

<td class="f_gray"><input type="text" size="60" id="upload"/>&nbsp;&nbsp;<span onclick="Dfile(<?php 
    echo $moduleid;
    ?>
, Dd('upload').value, 'upload');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="if(Dd('upload').value) window.open(Dd('upload').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('upload').value='';" class="jt">[删除]</span><?php 
    tips('从这里上传文件后,把地址复制到代码里即可使用');
    ?>
</td>
</tr>
<?php 
}
if ($p['typeid'] == 2) {
    ?>
<tr>
<td class="tl"><span class="f_red">*</span> 链接文字</td>
<td class="f_gray"><input type="text" size="60" name="ad[text_name]" id="text_name"/> <?php 
    echo dstyle('ad[text_style]');
    ?>
 [支持HTML语法] <span id="dtext_name" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 链接地址</td>
<td><input type="text" size="60" name="ad[text_url]" id="text_url"/> <span id="dtext_url" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> Title提示</td>
<td><input type="text" size="60" name="ad[text_title]"/></td>
</tr>
<?php 
}
if ($p['typeid'] == 3 || $p['typeid'] == 5) {
    ?>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:ad_add.tpl.php

示例10: Copyright

<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com
	This is NOT a freeware, use is subject to license.txt
*/
defined('DT_ADMIN') or exit('Access Denied');
isset($item) or msg();
require DT_ROOT . '/include/module.func.php';
require DT_ROOT . '/include/type.class.php';
$forward = '?file=' . $file . '&item=' . $item;
$do = new dtype();
$do->item = $item;
$do->cache = 1;
$TYPE = $do->get_list();
if ($submit) {
    $do->update($post);
    dmsg('更新成功', $forward);
} else {
    $types = $TYPE;
    $parent_option = '<option value="0">上级分类</option>' . $do->parent_option($TYPE);
    $parent_select = '<select name="post[0][parentid]">' . $parent_option . '</select>';
    foreach ($types as $k => $v) {
        $types[$k]['style_select'] = dstyle('post[' . $v['typeid'] . '][style]', $v['style']);
        $types[$k]['parent_select'] = '<select name="post[' . $v['typeid'] . '][parentid]">' . str_replace('"' . $v['parentid'] . '"', '"' . $v['parentid'] . '" selected', $parent_option) . '</select>';
    }
    $new_style = dstyle('post[0][style]');
    $lists = sort_type($types);
    include tpl('type');
}
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:30,代码来源:type.inc.php

示例11: dstyle

?>
"/>
<input type="hidden" name="action" value="<?php 
echo $action;
?>
"/>
<input type="hidden" name="forward" value="<?php 
echo $forward;
?>
"/>
<div class="tt">添加广告位</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl"><span class="f_red">*</span> 广告位名称</td>
<td><input name="place[name]" id="name" type="text" size="30" /> <?php 
echo dstyle('place[style]');
?>
 <span id="dname" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 广告位示意图</td>
<td><input name="place[thumb]" id="thumb" type="text" size="60"/>&nbsp;&nbsp;<span onclick="Dthumb(<?php 
echo $moduleid;
?>
,0,0, Dd('thumb').value,true);" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('thumb').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('thumb').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 广告位介绍</td>
<td><input name="place[introduce]" type="text" size="60" /></td>
</tr>
<tr>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:ad_add_place.tpl.php

示例12: dstyle

echo $moduleid;
?>
&file=<?php 
echo $file;
?>
" target="_blank" class="t">[查看]</a>
<br/><span class="f_gray">[注意]修改广告位ID可以恢复误删除的广告位。但如果填写的ID存在,可能导致一个SQL错误</span>
</td>
</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 广告位名称</td>
<td><input name="place[name]" id="name" type="text" size="30" value="<?php 
echo $name;
?>
"/> <?php 
echo dstyle('place[style]', $style);
?>
 <span id="dname" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 广告位示意图</td>
<td><input name="place[thumb]" id="thumb" type="text" size="60" value="<?php 
echo $thumb;
?>
"/>&nbsp;&nbsp;<span onclick="Dthumb(<?php 
echo $moduleid;
?>
,0,0, Dd('thumb').value,true);" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="_preview(Dd('thumb').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('thumb').value='';" class="jt">[删除]</span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 广告位介绍</td>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:ad_edit_place.tpl.php


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