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


PHP magicshowsetting函数代码示例

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


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

示例1: showmagic

function showmagic()
{
    global $tid, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowtype('', 'bottom');
}
开发者ID:lilhorse,项目名称:cocoa,代码行数:7,代码来源:magic_up.inc.php

示例2: showmagic

function showmagic()
{
    global $username, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_username'], 'username', $username, 'text');
    magicshowtype('', 'bottom');
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:7,代码来源:magic_reporter.inc.php

示例3: showmagic

function showmagic()
{
    global $tid, $lang;
    require_once DISCUZ_ROOT . './include/forum.func.php';
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowsetting($lang['MVK_target'], '', '', '<select name="moveto">' . forumselect() . '</select>');
    magicshowtype('', 'bottom');
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:9,代码来源:magic_move.inc.php

示例4: show

 function show()
 {
     global $_G;
     $tid = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($tid) {
         $thread = getpostinfo($_GET['id'], 'tid', array('fid'));
         $this->_check($thread['fid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/bump', 'bump_info'), 'tid', $tid, 'text');
     magicshowtype('bottom');
 }
开发者ID:tang86,项目名称:discuz-utf8,代码行数:12,代码来源:magic_bump.php

示例5: show

 function show()
 {
     global $_G;
     $user = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($user) {
         $member = getuserinfo($user);
         $this->_check($member['groupid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/checkonline', 'checkonline_targetuser'), 'username', $user, 'text');
     magicshowtype('bottom');
 }
开发者ID:tang86,项目名称:discuz-utf8,代码行数:12,代码来源:magic_checkonline.php

示例6: show

 function show()
 {
     global $_G;
     $user = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     if ($user) {
         $member = getuserinfo($user, array('groupid'));
         $this->_check($member['groupid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/showip', 'showip_targetuser'), 'username', $user, 'text');
     magicshowtype('bottom');
 }
开发者ID:pan289091315,项目名称:Discuz,代码行数:12,代码来源:magic_showip.php

示例7: show

 function show()
 {
     global $_G;
     $tid = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     if ($tid) {
         $thread = getpostinfo($_G['gp_id'], 'tid', array('fid', 'authorid'));
         $this->_check($thread);
     }
     $this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 24;
     magicshowtype('top');
     magicshowsetting(lang('magic/sofa', 'sofa_info', array('expiration' => $this->parameters['expiration'])), 'tid', $tid, 'text');
     magicshowtype('bottom');
 }
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:13,代码来源:magic_sofa.php

示例8: show

 function show()
 {
     global $_G;
     $pid = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     list($pid, $_G['tid']) = explode(':', $pid);
     if ($_G['tid']) {
         $post = getpostinfo($_G['gp_id'], 'pid', array('p.fid', 'p.authorid', 't.status as thread_status'));
         $this->_check($post);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/repent', 'repent_info'), 'pid', $pid, 'text');
     magicshowsetting('', 'ptid', $_G['tid'], 'hidden');
     magicshowtype('bottom');
 }
开发者ID:pan289091315,项目名称:Discuz,代码行数:14,代码来源:magic_repent.php

示例9: show

 function show()
 {
     global $_G;
     $tid = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($tid) {
         $thread = getpostinfo($_GET['id'], 'tid', array('fid'));
         $this->_check($thread['fid']);
     }
     $this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 1;
     magicshowtype('top');
     magicshowtips(lang('magic/jack', 'jack_info', array('expiration' => $this->parameters['expiration'], 'magicnum' => $this->magic['num'])));
     magicshowsetting(lang('magic/jack', 'jack_num'), 'magicnum', '1', 'text');
     magicshowsetting('', 'tid', $tid, 'hidden');
     magicshowtype('bottom');
 }
开发者ID:dalinhuang,项目名称:healthshop,代码行数:15,代码来源:magic_jack.php

示例10: showmagic

function showmagic()
{
    global $tid, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowsetting($lang['CCK_color'], '', '', '<table border="0" cellspacing="0" cellpadding="0"><tr>
	<td><input type="radio" class="radio" name="highlight_color" value="1" checked="checked" /></td><td width="20" bgcolor="red">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="2" /></td><td width="20" bgcolor="orange">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="3" /></td><td width="20" bgcolor="yellow">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="4" /></td><td width="20" bgcolor="green">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="5" /></td><td width="20" bgcolor="cyan">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="6" /></td><td width="20" bgcolor="blue">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="7" /></td><td width="20" bgcolor="purple">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="8" /></td><td width="20" bgcolor="gray">&nbsp;</td>
	</tr></table>');
    magicshowtype('', 'bottom');
}
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:17,代码来源:magic_color.inc.php

示例11: show

    function show()
    {
        global $_G;
        $tid = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
        if ($tid) {
            $thread = getpostinfo($_G['gp_id'], 'tid', array('fid'));
            $this->_check($thread['fid']);
        }
        $this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 24;
        magicshowtype('top');
        $lang = lang('magic/highlight');
        magicshowsetting(lang('magic/highlight', 'highlight_info', array('expiration' => $this->parameters['expiration'])), 'tid', $tid, 'text');
        echo <<<EOF
\t<p class="mtm mbn">{$lang['highlight_color']}</p>
\t<div class="hasd mbm cl">
\t\t<input type="hidden" id="highlight_color" name="highlight_color" />
\t\t<input type="text" readonly="readonly" class="crl" id="highlight_color_show" />
\t\t<a href="javascript:;" id="highlight_color_ctrl" class="dpbtn" onclick="showHighLightColor('highlight_color')">^</a>
\t</div>
\t<script type="text/javascript" reload="1">
\t\tfunction showHighLightColor(hlid) {
\t\t\tvar showid = hlid + '_show';
\t\t\tif(!\$(showid + '_menu')) {
\t\t\t\tvar str = '';
\t\t\t\tvar coloroptions = {'0' : '#000', '1' : '#EE1B2E', '2' : '#EE5023', '3' : '#996600', '4' : '#3C9D40', '5' : '#2897C5', '6' : '#2B65B7', '7' : '#8F2A90', '8' : '#EC1282'};
\t\t\t\tvar menu = document.createElement('div');
\t\t\t\tmenu.id = showid + '_menu';
\t\t\t\tmenu.className = 'cmen';
\t\t\t\tmenu.style.display = 'none';
\t\t\t\tfor(var i in coloroptions) {
\t\t\t\t\tstr += '<a href="javascript:;" onclick="\$(\\'' + hlid + '\\').value=' + i + ';\$(\\'' + showid + '\\').style.backgroundColor=\\'' + coloroptions[i] + '\\';hideMenu(\\'' + menu.id + '\\')" style="background:' + coloroptions[i] + ';color:' + coloroptions[i] + ';">' + coloroptions[i] + '</a>';
\t\t\t\t}
\t\t\t\tmenu.innerHTML = str;
\t\t\t\t\$('append_parent').appendChild(menu);
\t\t\t}
\t\t\tshowMenu({'ctrlid':hlid + '_ctrl','evt':'click','showid':showid});
\t\t}
\t</script>
EOF;
        magicshowtype('bottom');
    }
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:41,代码来源:magic_highlight.php

示例12: showmagic

function showmagic()
{
    global $tid, $lang;
    magicshowsetting('', '', '', '
	<table cellspacing="0" cellpadding="2" style="margin-top:-20px;">
		<tr>
			<td>' . $lang['target_tid'] . '</td>
			<td>' . $lang['CCK_color'] . '</td>
		</tr>
		<tr>
			<td><input type="text" value="' . $tid . '" name="tid" size="12" class="txt" /></td>
			<td class="hasdropdownbtn" style="position: relative;">
				<input type="hidden" id="highlight_color" name="highlight_color" />
				<input type="text" readonly="readonly" class="txt" id="color_bg" style="width: 18px; border-right: none;" />
				<a class="dropdownbtn" onclick="display(\'color_menu\')" href="javascript:;">^</a>
				<div id="color_menu" class="color_menu" style="display: none; clear: both; left: auto; top: auto;">
					<a href="javascript:;" onclick="switchhl(this, 1)" style="float:left;background:#EE1B2E;color:#EE1B2E;">#EE1B2E</a>
					<a href="javascript:;" onclick="switchhl(this, 2)" style="float:left;background:#EE5023;color:#EE5023;">#EE5023</a>
					<a href="javascript:;" onclick="switchhl(this, 3)" style="float:left;background:#996600;color:#996600;">#996600</a>
					<a href="javascript:;" onclick="switchhl(this, 4)" style="float:left;background:#3C9D40;color:#3C9D40;">#3C9D40</a>
					<a href="javascript:;" onclick="switchhl(this, 5)" style="float:left;background:#2897C5;color:#2897C5;">#2897C5</a>
					<a href="javascript:;" onclick="switchhl(this, 6)" style="float:left;background:#2B65B7;color:#2B65B7;">#2B65B7</a>
					<a href="javascript:;" onclick="switchhl(this, 7)" style="float:left;background:#8F2A90;color:#8F2A90;">#8F2A90</a>
					<a href="javascript:;" onclick="switchhl(this, 8)" style="float:left;background:#EC1282;color:#EC1282;">#EC1282</a>
				</div>
	 		</td>
	 	</tr>
	</table>
	<script type="text/javascript" reload="1">
		function switchhl(obj, v) {
			$(\'highlight_color\').value = v;
			$(\'color_bg\').style.backgroundColor = obj.style.backgroundColor;
			$(\'color_menu\').style.display = \'none\';
		}
	</script>
	');
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:37,代码来源:magic_color.inc.php

示例13: show

 function show()
 {
     global $_G;
     $id = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     $idtype = !empty($_GET['idtype']) ? dhtmlspecialchars($_GET['idtype']) : '';
     if ($idtype == 'pid') {
         list($id, $_G['tid']) = explode(':', $id);
         if ($id && $_G['tid']) {
             $post = getpostinfo($id, 'pid', array('p.fid', 'p.authorid'));
             $this->_check($post);
         }
     }
     magicshowtype('top');
     magicshowtips(lang('magic/namepost', 'namepost_desc'));
     magicshowtips(lang('magic/namepost', 'namepost_num', array('magicnum' => $this->magic['num'])));
     magicshowsetting('', 'id', $id, 'hidden');
     magicshowsetting('', 'idtype', $idtype, 'hidden');
     if ($idtype == 'pid') {
         magicshowsetting('', 'ptid', $_G['tid'], 'hidden');
     }
     magicshowtype('bottom');
 }
开发者ID:softhui,项目名称:discuz,代码行数:22,代码来源:magic_namepost.php

示例14: show

    function show()
    {
        global $_G;
        $id = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
        $idtype = !empty($_GET['idtype']) ? $_GET['idtype'] : '';
        if (!in_array($idtype, $this->idtypearray)) {
            showmessage(lang('magic/highlight', 'highlight_info_notype'), dreferer(), array(), array('showdialog' => 1, 'locationtime' => true));
        }
        if ($id) {
            $info = getpostinfo($_GET['id'], $idtype);
            if ($idtype == 'tid') {
                $this->_check($info['fid']);
                $this->parameters['expiration'] = $this->parameters['expiration'] && $idtype == 'tid' ? intval($this->parameters['expiration']) : 24;
            }
        }
        magicshowtype('top');
        $lang = lang('magic/highlight');
        magicshowsetting(lang('magic/highlight', 'highlight_info_' . $idtype, array('expiration' => $this->parameters['expiration'])), 'id', $id, 'hidden');
        echo <<<EOF
\t<p class="mtm mbn">{$lang['highlight_color']}</p>
\t<div class="hasd mbm cl">
\t\t<input type="hidden" id="highlight_color" name="highlight_color" />
\t\t<input type="hidden" id="highlight_idtype" name="idtype" value="{$idtype}"/>
\t\t<input type="text" id="highlight_color_show" class="crl readonly="readonly"" />
\t\t<a href="javascript:;" id="highlight_color_ctrl" class="dpbtn" onclick="showHighLightColor('highlight_color')">^</a>
\t</div>
\t<script type="text/javascript" reload="1">
\t\tfunction showHighLightColor(hlid) {
\t\t\tvar showid = hlid + '_show';
\t\t\tif(!\$(showid + '_menu')) {
\t\t\t\tvar str = '';
\t\t\t\tvar coloroptions = {'0' : '#000', '1' : '#FF0000', '2' : '#83da02', '3' : '#9900FF', '4' : '#FF9900', '5' : '#00ccff', '6' : '#FF00CC', '7' : '#ff640f', '8' : '#0033ff'};
\t\t\t\tvar menu = document.createElement('div');
\t\t\t\tmenu.id = showid + '_menu';
\t\t\t\tmenu.className = 'cmen';
\t\t\t\tmenu.style.display = 'none';
\t\t\t\tfor(var i in coloroptions) {
\t\t\t\t\tstr += '<a href="javascript:;" onclick="\$(\\'' + hlid + '\\').value=' + i + ';\$(\\'' + showid + '\\').style.backgroundColor=\\'' + coloroptions[i] + '\\';hideMenu(\\'' + menu.id + '\\')" style="background:' + coloroptions[i] + ';color:' + coloroptions[i] + ';">' + coloroptions[i] + '</a>';
\t\t\t\t}
\t\t\t\tmenu.innerHTML = str;
\t\t\t\t\$('append_parent').appendChild(menu);
\t\t\t}
\t\t\tshowMenu({'ctrlid':hlid + '_ctrl','evt':'click','showid':showid});
\t\t}
\t</script>
EOF;
        magicshowtype('bottom');
    }
开发者ID:deepziyu,项目名称:JX3PVE,代码行数:48,代码来源:magic_highlight.php


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