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


PHP showformfooter函数代码示例

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


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

示例1: showbody

	function showbody(){
		$submenu = array();
		foreach($this->anchors as $anchor){
			$submenu[] = array('setting_'.$anchor, $anchor, $this->dxanchor == $anchor);
		}

		$hookselect = '<select name="varsnew[hookid]">';
		for($i = 1; $i <= 3; $i++){
			$hookselect .= '<option value="'.$i.'"'.($this->settings['hookid'] == $i ? ' selected' : '').'>'.$this->lang('setting_hookid_'.$i).'</option>';
		}
		$hookselect .= '</select>';
				
		$this->formheader();
		$this->subanchors($submenu);

		$this->anchorheader('basic');
		$this->showsetting('setting_hookid', '', '', $hookselect);
		$this->showsetting('setting_cityid', 'varsnew[cityid]', $this->settings['cityid'], 'text');
		$this->showsetting('setting_loadingstr', 'varsnew[loadingstr]', $this->settings['loadingstr'], 'text');
		$this->showsetting('setting_linkreplace', 'varsnew[linkreplace]', $this->settings['linkreplace'], 'text');
		showsubmit('dxsubmit');
		$this->anchorfooter();

		$this->anchorheader('navstyle');
		$this->showsetting('setting_fontcolor', 'varsnew[dx_fontcolor]', $this->settings['dx_fontcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_citycolor', 'varsnew[dx_citycolor]', $this->settings['dx_citycolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_highcolor', 'varsnew[dx_highcolor]', $this->settings['dx_highcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_lowcolor', 'varsnew[dx_lowcolor]', $this->settings['dx_lowcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_weekcolor', 'varsnew[dx_weekcolor]', $this->settings['dx_weekcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_stacolor', 'varsnew[dx_stacolor]', $this->settings['dx_stacolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_suncolor', 'varsnew[dx_suncolor]', $this->settings['dx_suncolor'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_lineheight', 'varsnew[height]', intval($this->settings['height']), 'text');
		$this->showsetting('setting_popleft', 'varsnew[left]', intval($this->settings['left']), 'text');
		$this->showsetting('setting_poptop', 'varsnew[top]', intval($this->settings['top']), 'text');
		showsubmit('dxsubmit');
		$this->anchorfooter();

		$this->anchorheader('customstyle');
		$this->showsetting('setting_fontcolor', 'varsnew[dx_fontcolor3]', $this->settings['dx_fontcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_citycolor', 'varsnew[dx_citycolor3]', $this->settings['dx_citycolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_highcolor', 'varsnew[dx_highcolor3]', $this->settings['dx_highcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_lowcolor', 'varsnew[dx_lowcolor3]', $this->settings['dx_lowcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_glcolor', 'varsnew[dx_glcolor3]', $this->settings['dx_glcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_llcolor', 'varsnew[dx_llcolor3]', $this->settings['dx_llcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_weekcolor', 'varsnew[dx_weekcolor3]', $this->settings['dx_weekcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_stacolor', 'varsnew[dx_stacolor3]', $this->settings['dx_stacolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_suncolor', 'varsnew[dx_suncolor3]', $this->settings['dx_suncolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
		$this->showsetting('setting_popleft', 'varsnew[left3]', intval($this->settings['left3']), 'text');
		$this->showsetting('setting_poptop', 'varsnew[top3]', intval($this->settings['top3']), 'text');
		showsubmit('dxsubmit');
		$this->anchorfooter();

		showformfooter();
	}
开发者ID:xiao2ww,项目名称:Bjwlkjc,代码行数:54,代码来源:settings.inc.php

示例2: elseif

<script type="text/JavaScript">alert('<?php 
        echo $cpmsg;
        ?>
');parent.$('rbsearchform').searchsubmit.click();</script>
<?php 
    }
} elseif ($operation == 'clean') {
    if (!submitcheck('rbsubmit', 1)) {
        shownav('topic', 'nav_recyclebin');
        showsubmenu('nav_recyclebin', array(array('recyclebin_list', 'recyclebin', 0), array('search', 'recyclebin&operation=search', 0), array('clean', 'recyclebin&operation=clean', 1)));
        showformheader('recyclebin&operation=clean');
        showtableheader('recyclebin_clean');
        showsetting('recyclebin_clean_days', 'days', '30', 'text');
        showsubmit('rbsubmit');
        showtablefooter();
        showformfooter();
    } else {
        $deletetids = array();
        $timestamp = TIMESTAMP;
        $pernum = 500;
        $threadsdel = intval($_GET['threadsdel']);
        $days = intval($_GET['days']);
        foreach (C::t('forum_threadmod')->fetch_all_recyclebin_by_dateline($timestamp - $days * 86400, 0, $pernum) as $thread) {
            $deletetids[] = $thread['tid'];
        }
        if ($deletetids) {
            require_once libfile('function/delete');
            $delcount = deletethread($deletetids);
            $threadsdel += $delcount;
            $startlimit += $pernum;
            cpmsg('recyclebin_clean_next', 'action=recyclebin&operation=clean&rbsubmit=1&threadsdel=' . $threadsdel . '&days=' . $days, 'succeed', array('threadsdel' => $threadsdel));
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:admincp_recyclebin.php

示例3: searchgroups

function searchgroups($submit)
{
    global $_G;
    require_once libfile('function/group');
    empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array());
    $groupselect = get_groupselect(0, $_GET['selectgroupid'], 0);
    $monthselect = $dayselect = $birthmonth = $birthday = '';
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showtagheader('div', 'searchgroups', !$submit);
    echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
    showformheader("group&operation=manage");
    showtableheader();
    showsetting('groups_manage_name', 'srchname', $srchname, 'text');
    showsetting('groups_manage_id', 'srchfid', $srchfid, 'text');
    showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
    showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range');
    showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range');
    showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
    showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange');
    showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange');
    showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text');
    showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text');
    showtagfooter('tbody');
    showsubmit('submit');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:35,代码来源:admincp_group.php

示例4: showsearchform


//.........这里部分代码省略.........
    showsetting('members_search_online', array('sid_noempty', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_online'], 'mradio');
    showsetting('members_search_lockstatus', array('status', array(array(-1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_status'], 'mradio');
    showsetting('members_search_emailstatus', array('emailstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_emailstatus'], 'mradio');
    showsetting('members_search_avatarstatus', array('avatarstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_avatarstatus'], 'mradio');
    showsetting('members_search_email', 'email', $_G['gp_email'], 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_low", "credits_high"), array($_G['gp_credits_low'], $_G['gp_credtis_high']), 'range');
    if (!empty($_G['setting']['extcredits'])) {
        foreach ($_G['setting']['extcredits'] as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_low", "extcredits{$id}" . "_high"), array($_G['gp_extcredits' . $id . '_low'], $_G['gp_extcredits' . $id . '_high']), 'range');
        }
    }
    showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_G['gp_friends_low'], $_G['gp_friends_high']), 'range');
    showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_G['gp_posts_low'], $_G['gp_posts_high']), 'range');
    showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
    showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
    showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_G['gp_regdate_after'], $_G['gp_regdate_before']), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_G['gp_lastvisit_after'], $_G['gp_lastvisit_before']), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_G['gp_lastpost_after'], $_G['gp_lastpost_before']), 'daterange');
    showsetting('members_search_group_fid', 'fid', $_G['gp_fid'], 'text');
    if ($_G['setting']['verify']) {
        $verifydata = array();
        foreach ($_G['setting']['verify'] as $key => $value) {
            if ($value['available']) {
                $verifydata[] = array('verify' . $key, $value['title']);
            }
        }
        if (!empty($verifydata)) {
            showsetting('members_search_verify', array('verify', $verifydata), $_G['gp_verify'], 'mcheckbox');
        }
    }
    $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
    $yy = dgmdate(TIMESTAMP, 'Y');
    for ($y = $yy; $y >= $yy - 100; $y--) {
        $y = sprintf("%04d", $y);
        $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
    }
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
    loadcache('profilesetting');
    unset($_G['cache']['profilesetting']['uid']);
    unset($_G['cache']['profilesetting']['birthyear']);
    unset($_G['cache']['profilesetting']['birthmonth']);
    unset($_G['cache']['profilesetting']['birthday']);
    require_once libfile('function/profile');
    foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
        if (!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
            continue;
        }
        if ($fieldid == 'gender') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
            $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
            $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
            showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
        } elseif ($fieldid == 'birthcity') {
            $elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
            showsetting($value['title'], '', '', '<div id="birthdistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'birthdistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'residecity') {
            $elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
            showsetting($value['title'], '', '', '<div id="residedistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'residedistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'constellation') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $name = lang('space', 'constellation_' . $i);
                $select .= "<option value=\"{$name}\">{$name}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
        } elseif ($fieldid == 'zodiac') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $option = lang('space', 'zodiac_' . $i);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
        } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $value['choices'] = explode("\n", $value['choices']);
            foreach ($value['choices'] as $option) {
                $option = trim($option);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
        } else {
            showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
        }
    }
    showtagfooter('tbody');
    $_G['showsetting_multirow'] = 0;
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:101,代码来源:sendsms.inc.php

示例5: siteftp_form

function siteftp_form($action)
{
    showformheader($action);
    showtableheader('cloudaddons_ftp_setting');
    showsetting('setting_attach_remote_enabled_ssl', 'siteftp[ssl]', '', 'radio');
    showsetting('setting_attach_remote_ftp_host', 'siteftp[host]', '', 'text');
    showsetting('setting_attach_remote_ftp_port', 'siteftp[port]', '21', 'text');
    showsetting('setting_attach_remote_ftp_user', 'siteftp[username]', '', 'text');
    showsetting('setting_attach_remote_ftp_pass', 'siteftp[password]', '', 'text');
    showsetting('setting_attach_remote_ftp_pasv', 'siteftp[pasv]', 0, 'radio');
    showsetting('setting_attach_ftp_dir', 'siteftp[attachdir]', '', 'text');
    showsubmit('settingsubmit');
    showtablefooter();
    showformfooter();
}
开发者ID:softhui,项目名称:discuz,代码行数:15,代码来源:function_admincp.php

示例6: searchmembers

function searchmembers($operation = '')
{
    global $db, $tablepre, $usergroupid, $username, $srchemail, $lower, $higher, $extcredits, $submit, $lang;
    $groupselect = array();
    $usergroupid = isset($usergroupid) && is_array($usergroupid) ? $usergroupid : array();
    $query = $db->query("SELECT type, groupid, grouptitle, radminid FROM {$tablepre}usergroups WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
    while ($group = $db->fetch_array($query)) {
        $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
        $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
    }
    $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
    $monthselect = $dayselect = '';
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showtagheader('div', 'searchmembers', !$submit);
    echo '<script src="include/js/calendar.js" type="text/javascript"></script>';
    showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
    showtableheader();
    showsetting('members_search_user', 'username', $username, 'text');
    showsetting('members_search_uid', 'uid', $uid, 'text');
    showsetting('members_search_group', '', '', '<select name="usergroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . lang('unlimited') . '</option>' . $groupselect . '</select>');
    showtagheader('tbody', 'advanceoption');
    showsetting('members_search_email', 'srchemail', $srchemail, 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("higher[credits]", "lower[credits]"), array($higher[credits], $lower[credits]), 'range');
    if (!empty($extcredits)) {
        foreach ($extcredits as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("higher[extcredits{$id}]", "lower[extcredits{$id}]"), array($higher['extcredits' . $id], $lower['extcredits' . $id]), 'range');
        }
    }
    showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
    showsetting('members_search_regip', 'regip', $regip, 'text');
    showsetting('members_search_lastip', 'lastip', $lastip, 'text');
    showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($regdateafter, $regdatebefore), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($lastvisitafter, $lastvisitbefore), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($lastpostafter, $lastpostbefore), 'daterange');
    showsetting('members_search_birthday', '', '', '<input type="text" class="txt" name="birthyear" style="width:86px; margin-right:0" value="' . dhtmlspecialchars($year) . '"> ' . $lang['year'] . ' <input type="text" class="txt" name="birthmonth" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($month) . '"> ' . $lang['month'] . ' <input type="text" class="txt" name="birthday" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($day) . '"> ' . $lang['day']);
    showtagfooter('tbody');
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:evatlsong,项目名称:springside,代码行数:48,代码来源:members.inc.php

示例7: showUploadImageForm

function showUploadImageForm($tid) {
	ajaxshowheader();
	echo '
		<ul class="fwin-menu">
			<li class="a"><a>'.cplang('qqgroup_ctrl_upload_image').'</a></li>
			<li style="float:right;"><a class="flbc" href="javascript:;" onClick="hideWindow(\'uploadImgWin\')" title="'.cplang('qqgroup_ctrl_close').'">'.cplang('qqgroup_ctrl_close').'</a></li>
		</ul>
		';
	echo '<div class="c">';
	showformheader('cloud&operation=qqgroup&anchor=block&op=uploadImage', 'enctype="multipart/form-data"', 'uploadImage');
	echo '<input type="hidden" name="tid" value="'.$tid.'" />';
	echo '<input type="hidden" name="uploadImageSubmit" value="1" />';
	echo '
			<table class="tb">
				<tr style="display:none;">
					<td id="uploadImageResult" colspan="2" align="center"></td>
				</tr>
				<tr>
					<td width="70" align="right">'.cplang('qqgroup_ctrl_choose_image').'</td>
					<td align="left"><input type="file" name="imageFile" size="30" /></td>
				</tr>
				<tr>
					<td align="right"></td>
					<td align="left">
						<p>'.cplang('qqgroup_ctrl_choose_image_tips').'</p>
					</td>
				</tr>
			</table>
			';
	showformfooter();
	echo '</div>';
	echo '
		<div class="o pns"><button class="pn pnc" onClick="ajaxUploadQQGroupImage();"><span>'.cplang('qqgroup_ctrl_upload_image').'</span></button></div>
		';
	ajaxshowfooter();
}
开发者ID:xDiglett,项目名称:discuzx30,代码行数:36,代码来源:cloud_qqgroup.php

示例8: showcommentmod

function showcommentmod($display = true)
{
    global $_G, $catstr, $opcheckstr, $gradestr, $_SGLOBAL, $buffurl;
    showtableheader(lang('operation_form'), 'nobottom');
    showtablerow('', array('width="50px"', ''), array('<input class="radio" type="radio" name="operation" value="delete"><input type="hidden" name="page" value="' . $_GET['page'] . '"><input type="hidden" name="buffurl" value="' . $buffurl . '">', lang('mod_delete')));
    showsubmit('deletesubmit', 'submit', '');
    showtablefooter();
    showformfooter();
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:9,代码来源:tpl.func.php

示例9: showsearchform


//.........这里部分代码省略.........
	showsetting('members_search_email', 'email', $_GET['email'], 'text');
	showsetting("$lang[credits] $lang[members_search_between]", array("credits_low", "credits_high"), array($_GET['credits_low'], $_GET['credtis_high']), 'range');

	if(!empty($_G['setting']['extcredits'])) {
		foreach($_G['setting']['extcredits'] as $id => $credit) {
			showsetting("$credit[title] $lang[members_search_between]", array("extcredits$id"."_low", "extcredits$id"."_high"), array($_GET['extcredits'.$id.'_low'], $_GET['extcredits'.$id.'_high']), 'range');
		}
	}

	showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_GET['friends_low'], $_GET['friends_high']), 'range');
	showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_GET['posts_low'], $_GET['posts_high']), 'range');
	showsetting('members_search_regip', 'regip', $_GET['regip'], 'text');
	showsetting('members_search_lastip', 'lastip', $_GET['lastip'], 'text');
	showsetting('members_search_oltimerange', array('oltime_low', 'oltime_high'), array($_GET['oltime_low'], $_GET['oltime_high']), 'range');
	showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_GET['regdate_after'], $_GET['regdate_before']), 'daterange');
	showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_GET['lastvisit_after'], $_GET['lastvisit_before']), 'daterange');
	showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_GET['lastpost_after'], $_GET['lastpost_before']), 'daterange');
	showsetting('members_search_group_fid', 'fid', $_GET['fid'], 'text');
	if($_G['setting']['verify']) {
		$verifydata = array();
		foreach($_G['setting']['verify'] as $key => $value) {
			if($value['available']) {
				$verifydata[] = array('verify'.$key, $value['title']);
			}
		}
		if(!empty($verifydata)) {
			showsetting('members_search_verify', array('verify', $verifydata), $_GET['verify'], 'mcheckbox');
		}
	}
	$yearselect = $monthselect = $dayselect = "<option value=\"\">".cplang('nolimit')."</option>\n";
	$yy=dgmdate(TIMESTAMP, 'Y');
	for($y=$yy; $y>=$yy-100; $y--) {
		$y = sprintf("%04d", $y);
		$yearselect .= "<option value=\"$y\" ".($_GET['birthyear'] == $y ? 'selected' : '').">$y</option>\n";
	}
	for($m=1; $m<=12; $m++) {
		$m = sprintf("%02d", $m);
		$monthselect .= "<option value=\"$m\" ".($_GET['birthmonth'] == $m ? 'selected' : '').">$m</option>\n";
	}
	for($d=1; $d<=31; $d++) {
		$d = sprintf("%02d", $d);
		$dayselect .= "<option value=\"$d\" ".($_GET['birthday'] == $d ? 'selected' : '').">$d</option>\n";
	}
	showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">'.$yearselect.'</select> '.$lang['year'].' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">'.$monthselect.'</select> '.$lang['month'].' <select class="txt" name="birthday" style="width:75px; margin-right:0">'.$dayselect.'</select> '.$lang['day']);

	loadcache('profilesetting');
	unset($_G['cache']['profilesetting']['uid']);
	unset($_G['cache']['profilesetting']['birthyear']);
	unset($_G['cache']['profilesetting']['birthmonth']);
	unset($_G['cache']['profilesetting']['birthday']);
	require_once libfile('function/profile');
	foreach($_G['cache']['profilesetting'] as $fieldid=>$value) {
		if(!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
			continue;
		}
		if($fieldid == 'gender') {
			$select = "<option value=\"\">".cplang('nolimit')."</option>\n";
			$select .= "<option value=\"0\">".cplang('members_edit_gender_secret')."</option>\n";
			$select .= "<option value=\"1\">".cplang('members_edit_gender_male')."</option>\n";
			$select .= "<option value=\"2\">".cplang('members_edit_gender_female')."</option>\n";
			showsetting($value['title'], '', '', '<select class="txt" name="gender">'.$select.'</select>');
		} elseif($fieldid == 'birthcity') {
			$elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
			showsetting($value['title'], '', '', '<div id="birthdistrictbox">'.showdistrict(array(0,0,0,0), $elems, 'birthdistrictbox', 1, 'birth').'</div>');
		} elseif($fieldid == 'residecity') {
			$elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
			showsetting($value['title'], '', '', '<div id="residedistrictbox">'.showdistrict(array(0,0,0,0), $elems, 'residedistrictbox', 1, 'reside').'</div>');
		} elseif($fieldid == 'constellation') {
			$select = "<option value=\"\">".cplang('nolimit')."</option>\n";
			for($i=1; $i<=12; $i++) {
				$name = lang('space', 'constellation_'.$i);
				$select .= "<option value=\"$name\">$name</option>\n";
			}
			showsetting($value['title'], '', '', '<select class="txt" name="constellation">'.$select.'</select>');
		} elseif($fieldid == 'zodiac') {
			$select = "<option value=\"\">".cplang('nolimit')."</option>\n";
			for($i=1; $i<=12; $i++) {
				$option = lang('space', 'zodiac_'.$i);
				$select .= "<option value=\"$option\">$option</option>\n";
			}
			showsetting($value['title'], '', '', '<select class="txt" name="zodiac">'.$select.'</select>');
		} elseif($value['formtype'] == 'select' || $value['formtype'] == 'list') {
			$select = "<option value=\"\">".cplang('nolimit')."</option>\n";
			$value['choices'] = explode("\n",$value['choices']);
			foreach($value['choices'] as $option) {
				$option = trim($option);
				$select .= "<option value=\"$option\">$option</option>\n";
			}
			showsetting($value['title'], '', '', '<select class="txt" name="'.$fieldid.'">'.$select.'</select>');
		} else {
			showsetting($value['title'], '', '', '<input class="txt" name="'.$fieldid.'" />');
		}
	}
	showtagfooter('tbody');
	$_G['showsetting_multirow'] = 0;
	showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
	showtablefooter();
	showformfooter();
	showtagfooter('div');
}
开发者ID:hutao1004,项目名称:yintt,代码行数:101,代码来源:admincp_members.php

示例10: showTaskInfo


//.........这里部分代码省略.........
        }
    }
    $tpl = str_replace('<% btn_name %>', lang('plugin/bigapp', 'btn_name'), $tpl);
    $tpl = str_replace('<% upload_url_icon %>', $iconUrl, $tpl);
    $tpl = str_replace('<% error_str %>', lang('plugin/bigapp', 'upload_file_failed'), $tpl);
    $tpl = str_replace('<% upid_icon %>', 'icon_image', $tpl);
    $tpl = str_replace('<% file_tip_icon %>', lang('plugin/bigapp', 'icon_image_comment'), $tpl);
    $tpl = str_replace('<% upload_url_startup %>', $startupUrl, $tpl);
    $tpl = str_replace('<% upid_startup %>', 'startup_image', $tpl);
    $tpl = str_replace('<% file_tip_startup %>', lang('plugin/bigapp', 'startup_image_comment'), $tpl);
    $tpl = str_replace('<% icon_image_title %>', lang('plugin/bigapp', 'icon_image'), $tpl);
    $tpl = str_replace('<% startup_image_title %>', lang('plugin/bigapp', 'startup_image'), $tpl);
    $tpl = str_replace('<% app_charset %>', CHARSET, $tpl);
    echo $tpl;
    $var = array('os', array(array(0, 'android'), array(1, 'ios')));
    $tmp = $confInfo['task_info']['os'];
    $i = 0;
    $val = array();
    while ($tmp != 0) {
        if (1 == ($tmp & 1)) {
            $val[] = $i;
        }
        $i++;
        $tmp = $tmp >> 1;
    }
    $var1 = array('choose_release', array(array(0, lang('plugin/bigapp', 'choose_release_title'))));
    //////////////////////////////////////
    showsetting(lang('plugin/bigapp', 'version_name'), 'version_name', $confInfo['task_info']['version_name'], 'text', 0, 0, lang('plugin/bigapp', 'version_name_comment'), '', '', true);
    /*
    		echo '<tr><td style="line-height:30px;font-weight:bold">APP版本号: </td></tr>';
            echo '<tr class="noborder" onmouseover="setfaq(this, \'faq7088\')">'.
                 '<td class="vtop rowform">'.
                 '  <select name="app_version" id="app_version" class="txt" style="cursor:pointer;"></select></td>'.
                 '<td class="vtop tips2" s="1">输入两位或三位版本号(如1.0.2, 2.1)</td></tr>';
    */
    //////////////////////////////////////
    echo '<tr><td style="line-height:30px;color:red;font-weight:bold">' . lang('plugin/bigapp', 'key_store_setting') . '</td></tr>';
    //key store别名
    showsetting(lang('plugin/bigapp', 'key_alias'), 'key_alias', $shareSettingInfo['data']['key_alias'], 'text', 0, 0, lang('plugin/bigapp', 'key_alias_comment'), '', '', true);
    //秘钥库密码
    showsetting(lang('plugin/bigapp', 'store_password') . '(store password)', 'store_password', $shareSettingInfo['data']['store_password'], 'text', 0, 0, lang('plugin/bigapp', 'store_password_comment'), '', '', true);
    //key store密码
    showsetting(lang('plugin/bigapp', 'key_password') . '(key password)', 'key_password', $shareSettingInfo['data']['key_password'], 'text', 0, 0, lang('plugin/bigapp', 'key_password_comment'), '', '', true);
    //key store文件上传
    showsetting(lang('plugin/bigapp', 'key_store_file'), 'key_store_file', $shareSettingInfo['data']['key_store_name'], 'file', 0, 0, lang('plugin/bigapp', 'key_store_file_comment'), '', '', true);
    $val1[0] = 1;
    showsetting(lang('plugin/bigapp', ''), $var1, $val1, 'mcheckbox', 0, 0, lang('plugin/bigapp', 'choose_release_msg'), '', '', true);
    $shareInfo = (array) json_decode($shareSettingInfo['data']['share_plat'], true);
    echo '<tr><td style="line-height:30px;color:red;font-weight:bold">' . lang('plugin/bigapp', 'share_plat_setting') . '</td></tr>';
    echo '<tr><td style="line-height:30px;font-weight:bold">' . lang('plugin/bigapp', 'wechat') . '</td></tr>';
    showsetting('App ID', 'app_id_wechat', $shareInfo[0]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    showsetting('Secret Key', 'sec_key_wechat', $shareInfo[0]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    echo '<tr><td style="line-height:30px;font-weight:bold">QQ</td></tr>';
    showsetting('App ID', 'app_id_qq', $shareInfo[1]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    showsetting('Secret Key', 'sec_key_qq', $shareInfo[1]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    echo '<tr><td style="line-height:30px;font-weight:bold">' . lang('plugin/bigapp', 'sina') . '</td></tr>';
    showsetting('App ID', 'app_id_sina', $shareInfo[2]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    showsetting('Secret Key', 'sec_key_sina', $shareInfo[2]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    showsetting('Redirect Url', 'redirect_url_sina', $shareInfo[2]['redirect_url_sina'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
    showsetting(lang('plugin/bigapp', 'app_type'), $var, $val, 'mcheckbox', 0, 0, lang('plugin/bigapp', 'app_type_comment'), '', '', true);
    //for jpush start
    echo '<tr><th colspan="15" class="partition">' . lang('plugin/bigapp', 'push_config') . '</th></tr>';
    echo '<td colspan="2" class="td27" s="1">' . lang('plugin/bigapp', 'push_tip') . '</td>';
    $jpushInfo = $confInfo['task_info'];
    if (false === $jpushInfo) {
        runlog('bigapp', 'get jpush info failed, use empty info');
    }
    if (!isset($jpushInfo['jpush_app_key'])) {
        $jpushInfo['jpush_app_key'] = '';
    }
    if (!isset($jpushInfo['jpush_master_secret'])) {
        $jpushInfo['jpush_master_secret'] = '';
    }
    if (!isset($jpushInfo['jpush_is_free'])) {
        $jpushInfo['jpush_is_free'] = 0;
    }
    if ($jpushInfo['jpush_is_free'] != 0) {
        $jpushInfo['jpush_is_free'] = 1;
    }
    updatecache('setting');
    if (isset($_G['setting']['bigapp_push_config'])) {
        $_G['setting']['bigapp_push_config'] = unserialize($_G['setting']['bigapp_push_config']);
    }
    if (!isset($_G['setting']['bigapp_push_config']['push_enabled'])) {
        $_G['setting']['bigapp_push_config']['push_enabled'] = 0;
    }
    if ($_G['setting']['bigapp_push_config']['push_enabled'] != 0) {
        $_G['setting']['bigapp_push_config']['push_enabled'] = 1;
    }
    $pushEnabled = array('push_enabled', array(array(0, lang('plugin/bigapp', 'no')), array(1, lang('plugin/bigapp', 'yes'))));
    showsetting(lang('plugin/bigapp', 'push_enabled'), $pushEnabled, $_G['setting']['bigapp_push_config']['push_enabled'], 'mradio', 0, 0, lang('plugin/bigapp', 'push_enabled_comment'));
    showsetting(lang('plugin/bigapp', 'jpush_app_key'), 'jpush_app_key', $jpushInfo['jpush_app_key'], 'text', 0, 0, lang('plugin/bigapp', 'app_key_comment'), 'id="app_key"', '', true);
    showsetting(lang('plugin/bigapp', 'jpush_master_secret'), 'jpush_master_secret', $jpushInfo['jpush_master_secret'], 'text', 0, 0, lang('plugin/bigapp', 'master_secret_comment'), 'id=master_secret', '', true);
    $isFreeAccount = array('jpush_is_free', array(array(0, lang('plugin/bigapp', 'no')), array(1, lang('plugin/bigapp', 'yes'))));
    showsetting(lang('plugin/bigapp', 'is_free_account'), $isFreeAccount, $jpushInfo['jpush_is_free'], 'mradio', 0, 0, lang('plugin/bigapp', 'is_free_account_comment'));
    //for jpush end
    showsubmit('newtask', lang('plugin/bigapp', 'start_to_go'), '', '', '', false);
    showtablefooter();
    showformfooter();
}
开发者ID:Mushan3420,项目名称:BigApp-PHP7,代码行数:101,代码来源:buildapp.inc.php

示例11: showsearchform

function showsearchform($operation = '')
{
    global $_G, $lang;
    $groupselect = array();
    $usergroupid = isset($_G['gp_usergroupid']) && is_array($_G['gp_usergroupid']) ? $_G['gp_usergroupid'] : array();
    $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
    while ($group = DB::fetch($query)) {
        $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
        $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
    }
    $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
    showtagheader('div', 'searchmembers', !$_G['gp_submit']);
    echo '<script src="static/js/forum_calendar.js" type="text/javascript"></script>';
    showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
    showtableheader();
    showsetting('members_search_user', 'username', $_G['gp_username'], 'text');
    showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text');
    showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
    showtagheader('tbody', 'advanceoption');
    showsetting('members_search_email', 'srchemail', $_G['gp_srchemail'], 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_high", "credits_low"), array($_G['gp_credits_high'], $_G['gp_credtis_lower']), 'range');
    if (!empty($_G['setting']['extcredits'])) {
        foreach ($_G['setting']['extcredits'] as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_high", "extcredits{$id}" . "_low"), array($_G['gp_extcredits' . $id . '_high'], $_G['gp_extcredits' . $id . '_low']), 'range');
        }
    }
    showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($_G['gp_postshigher'], $_G['gp_postslower']), 'range');
    showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
    showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
    showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($_G['gp_regdateafter'], $_G['gp_regdatebefore']), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($_G['gp_lastvisitafter'], $_G['gp_lastvisitbefore']), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($_G['gp_lastpostafter'], $_G['gp_lastpostbefore']), 'daterange');
    $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
    $yy = dgmdate(TIMESTAMP, 'Y');
    for ($y = $yy; $y >= $yy - 100; $y--) {
        $y = sprintf("%04d", $y);
        $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
    }
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
    loadcache('profilesetting');
    unset($_G['cache']['profilesetting']['uid']);
    unset($_G['cache']['profilesetting']['birthyear']);
    unset($_G['cache']['profilesetting']['birthmonth']);
    unset($_G['cache']['profilesetting']['birthday']);
    foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
        if ($fieldid == 'gender') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
            $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
            $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
            showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
        } elseif ($fieldid == 'constellation') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $name = lang('space', 'constellation_' . $i);
                $select .= "<option value=\"{$name}\">{$name}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
        } elseif ($fieldid == 'zodiac') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $option = lang('space', 'zodiac_' . $i);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
        } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $value['choices'] = explode("\n", $value['choices']);
            foreach ($value['choices'] as $option) {
                $option = trim($option);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
        } else {
            showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
        }
    }
    showtagfooter('tbody');
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:91,代码来源:admincp_members.php


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