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


PHP topage函数代码示例

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


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

示例1: demo_print_message

function demo_print_message($msg, $format)
{
    global $webim_encoding;
    if ($format == "xml") {
        print "<message>" . myiconv($webim_encoding, "utf-8", escape_with_cdata(message_to_html($msg))) . "</message>\n";
    } else {
        print topage(message_to_html($msg));
    }
}
开发者ID:paulcn,项目名称:mibew,代码行数:9,代码来源:demothread.php

示例2: verifyparam

}
$groupid = verifyparam("gid", "/^\\d{1,10}\$/");
$page = array('groupid' => $groupid);
$page['operators'] = get_operators();
$errors = array();
$group = group_by_id($groupid);
if (!$group) {
    $errors[] = getlocal("page.group.no_such");
} else {
    if (isset($_POST['gid'])) {
        $new_members = array();
        foreach ($page['operators'] as $op) {
            if (verifyparam("op" . $op['operatorid'], "/^on\$/", "") == "on") {
                $new_members[] = $op['operatorid'];
            }
        }
        update_group_members($groupid, $new_members);
        header("Location: {$mibewroot}/operator/groupmembers.php?gid=" . intval($groupid) . "&stored");
        exit;
    }
}
$page['formop'] = array();
$page['currentgroup'] = $group ? topage($group['vclocalname']) : "";
foreach (get_group_members($groupid) as $rel) {
    $page['formop'][] = $rel['operatorid'];
}
$page['stored'] = isset($_GET['stored']);
prepare_menu($operator);
setup_group_settings_tabs($groupid, 1);
start_html_output();
require '../view/groupmembers.php';
开发者ID:kuell,项目名称:chat,代码行数:31,代码来源:groupmembers.php

示例3: tpl_content

function tpl_content()
{
    global $page, $webimroot;
    ?>

<?php 
    echo getlocal("page.translate.descr");
    ?>
<br />
<br />

<form name="translateForm" method="get" action="<?php 
    echo $webimroot;
    ?>
/operator/translate.php">
	
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<div class="packedFormField">
		<?php 
    echo getlocal("translate.direction");
    ?>
<br/>
		<select name="source" onchange="this.form.submit();"><?php 
    foreach ($page['availableLocales'] as $k) {
        echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("source") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>";
    }
    ?>
</select>
		=&gt;
		<select name="target" onchange="this.form.submit();"><?php 
    foreach ($page['availableLocales'] as $k) {
        echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("target") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>";
    }
    ?>
</select>
	</div>
	
	<div class="packedFormField">
		<?php 
    echo getlocal("translate.sort");
    ?>
<br/>
		<select name="sort" onchange="this.form.submit();"><?php 
    foreach ($page['availableOrders'] as $k) {
        echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("sort") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>";
    }
    ?>
</select>
	</div>
	
	<div class="packedFormField">
		<?php 
    echo getlocal("translate.show");
    ?>
<br/>
		<select name="show" onchange="this.form.submit();"><?php 
    foreach ($page['showOptions'] as $k) {
        echo "<option value=\"" . $k["id"] . "\"" . ($k["id"] == form_value("show") ? " selected=\"selected\"" : "") . ">" . $k["name"] . "</option>";
    }
    ?>
</select>
	</div>
	
	<br clear="all"/>
	
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<br/>


<?php 
    if ($page['pagination']) {
        if ($page['pagination.items']) {
            echo generate_pagination($page['pagination'], false);
        }
        ?>

<table class="translate">
<thead>
	<tr class="header"><th>
		Key
	</th><th>
		<?php 
        echo topage($page['title1']);
        ?>
	</th><th>
		<?php 
        echo topage($page['title2']);
        ?>
	</th></tr>
</thead>
<tbody>
<?php 
        if ($page['pagination.items']) {
            foreach ($page['pagination.items'] as $localstr) {
                ?>
	<tr>
		<td>
			<a href="<?php 
//.........这里部分代码省略.........
开发者ID:laiello,项目名称:cartonbank,代码行数:101,代码来源:translatelist.php

示例4: tpl_content

function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

<?php 
    echo getlocal("page_ban.intro");
    ?>
<br />
<br />
<?php 
    require_once 'inc_errors.php';
    ?>

<div class="tabletool">
	<img src="<?php 
    echo $mibewroot;
    ?>
/images/buttons/createban.gif" border="0" alt=""/>
	<a href="<?php 
    echo $mibewroot;
    ?>
/operator/ban.php" title="<?php 
    echo safe_htmlspecialchars(getlocal("page_bans.add"));
    ?>
">
		<?php 
    echo getlocal("page_bans.add");
    ?>
	</a>
</div>
<br clear="all"/>

<?php 
    if ($page['pagination']) {
        ?>

<table class="list">
<thead>
<tr class="header">
<th>
	<?php 
        echo getlocal("form.field.address");
        ?>
</th><th>
	<?php 
        echo getlocal("page_bans.to");
        ?>
</th><th>
	<?php 
        echo getlocal("form.field.ban_comment");
        ?>
</th><th>
</th>
</tr>
</thead>
<tbody>
<?php 
        if ($page['pagination.items']) {
            foreach ($page['pagination.items'] as $b) {
                ?>
	<tr>
	<td class="notlast">
		<a href="ban.php?id=<?php 
                echo urlencode($b['banid']);
                ?>
" class="man" id="ti<?php 
                echo safe_htmlspecialchars($b['banid']);
                ?>
">
		   	<?php 
                echo safe_htmlspecialchars($b['address']);
                ?>
	   	</a>
	</td>
	<td class="notlast">
   		<?php 
                echo date_to_text($b['till']);
                ?>
	</td>
	<td>
<?php 
                if (strlen(topage($b['comment'])) > 30) {
                    echo safe_htmlspecialchars(substr(topage($b['comment']), 0, 30));
                } else {
                    echo safe_htmlspecialchars(topage($b['comment']));
                }
                ?>
	</td>
	<td>
		<a class="removelink" id="i<?php 
                echo safe_htmlspecialchars($b['banid']);
                ?>
" href="<?php 
                echo $mibewroot;
                ?>
/operator/blocked.php?act=del&amp;id=<?php 
                echo urlencode($b['banid']);
                print_csrf_token_in_url();
                ?>
//.........这里部分代码省略.........
开发者ID:kuell,项目名称:chat,代码行数:101,代码来源:blocked_visitors.php

示例5: tpl_content


//.........这里部分代码省略.........
	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<br/>

<?php 
    if ($page['pagination']) {
        ?>

<table class="list">
<thead>
<tr class="header">
<th>
	<?php 
        echo getlocal("notifications.head.to");
        ?>
</th><th>
	<?php 
        echo getlocal("notifications.head.subj");
        ?>
</th><th>
	<?php 
        echo getlocal("notifications.head.msg");
        ?>
</th><th>
	<?php 
        echo getlocal("notifications.head.time");
        ?>
</th>
</tr>
</thead>
<tbody>
<?php 
        if ($page['pagination.items']) {
            foreach ($page['pagination.items'] as $b) {
                ?>
	<tr>
	<td class="notlast">
		<a href="<?php 
                echo $webimroot;
                ?>
/operator/notification.php?id=<?php 
                echo $b['id'];
                ?>
" target="_blank" onclick="this.newWindow = window.open('<?php 
                echo $webimroot;
                ?>
/operator/notification.php?id=<?php 
                echo $b['id'];
                ?>
', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;" class="<?php 
                echo $b['vckind'] == 'xmpp' ? 'xmpp' : 'mail';
                ?>
">
   			<?php 
                echo htmlspecialchars(shorten(topage($b['vcto']), 30));
                ?>
   		</a>
	</td>
	<td class="notlast">
		<?php 
                echo htmlspecialchars(shorten(topage($b['vcsubject']), 30));
                ?>
	</td>
	<td class="notlast">
		<?php 
                echo htmlspecialchars(shorten(topage($b['tmessage']), 30));
                ?>
	</td>
	<td>
   		<?php 
                echo date_to_text($b['created']);
                ?>
	</td>
	</tr>
<?php 
            }
        } else {
            ?>
	<tr>
	<td colspan="4">
		<?php 
            echo getlocal("tag.pagination.no_items.elements");
            ?>
	</td>
	</tr>
<?php 
        }
        ?>
</tbody>
</table>
<?php 
        if ($page['pagination.items']) {
            echo "<br/>";
            echo generate_pagination($page['pagination']);
        }
    }
    ?>

<?php 
}
开发者ID:paulcn,项目名称:mibew,代码行数:101,代码来源:notifications.php

示例6: connect

        if ($thread['istate'] == $state_chatting) {
            $link = connect();
            commit_thread($threadid, array("istate" => intval($state_waiting), "nextagent" => 0, "groupid" => intval($nextid), "agentId" => 0, "agentName" => "''"), $link);
            post_message_($thread['threadid'], $kind_events, getstring2_("chat.status.operator.redirect", array(get_operator_name($operator)), $thread['locale'], true), $link);
            mysql_close($link);
        } else {
            $errors[] = getlocal("chat.redirect.cannot");
        }
    } else {
        $errors[] = getlocal("chat.redirect.unknown_group");
    }
} else {
    $nextid = verifyparam("nextAgent", "/^\\d{1,10}\$/");
    $nextOperator = operator_by_id($nextid);
    if ($nextOperator) {
        $page['message'] = getlocal2("chat.redirected.content", array(safe_htmlspecialchars(topage(get_operator_name($nextOperator)))));
        if ($thread['istate'] == $state_chatting) {
            $link = connect();
            $threadupdate = array("istate" => intval($state_waiting), "nextagent" => intval($nextid), "agentId" => 0);
            if ($thread['groupid'] != 0) {
                if (FALSE === select_one_row("select groupid from {$mysqlprefix}chatgroupoperator where operatorid = " . intval($nextid) . " and groupid = " . intval($thread['groupid']), $link)) {
                    $threadupdate['groupid'] = 0;
                }
            }
            commit_thread($threadid, $threadupdate, $link);
            post_message_($thread['threadid'], $kind_events, getstring2_("chat.status.operator.redirect", array(get_operator_name($operator)), $thread['locale'], true), $link);
            mysql_close($link);
        } else {
            $errors[] = getlocal("chat.redirect.cannot");
        }
    } else {
开发者ID:kuell,项目名称:chat,代码行数:31,代码来源:redirect.php

示例7: prepare_menu

function prepare_menu($operator, $hasright = true)
{
    global $page, $settings, $can_administrate, $can_viewnotifications;
    $page['operator'] = topage(get_operator_name($operator));
    if ($hasright) {
        loadsettings();
        $page['showban'] = $settings['enableban'] == "1";
        $page['showgroups'] = $settings['enablegroups'] == "1";
        $page['showstat'] = $settings['enablestatistics'] == "1";
        $page['shownotifications'] = is_capable($can_viewnotifications, $operator);
        $page['showadmin'] = is_capable($can_administrate, $operator);
        $page['currentopid'] = $operator['operatorid'];
    }
}
开发者ID:kuell,项目名称:chat,代码行数:14,代码来源:operator.php

示例8: tpl_content

function tpl_content()
{
    global $page, $mibewroot, $errors;
    ?>

<?php 
    echo safe_htmlspecialchars(getlocal("page.groupmembers.intro"));
    ?>
<br />
<br />
<?php 
    require_once 'inc_errors.php';
    if ($page['stored']) {
        ?>
<div id="formmessage"><?php 
        echo safe_htmlspecialchars(getlocal("data.saved"));
        ?>
</div>
<?php 
    }
    ?>

<form name="membersForm" method="post" action="<?php 
    echo $mibewroot;
    ?>
/operator/groupmembers.php">
<?php 
    print_csrf_token_input();
    ?>
<input type="hidden" name="gid" value="<?php 
    echo safe_htmlspecialchars($page['groupid']);
    ?>
"/>
	<div>
<?php 
    print_tabbar();
    ?>
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">

	<p>
		<b><?php 
    echo safe_htmlspecialchars($page['currentgroup']);
    ?>
</b>
	</p>
<?php 
    foreach ($page['operators'] as $pm) {
        ?>
	<div class="field">
		<div class="fvaluenodesc">
			<input type="checkbox" name="op<?php 
        echo safe_htmlspecialchars($pm['operatorid']);
        ?>
" value="on"<?php 
        echo form_value_mb('op', $pm['operatorid']) ? " checked=\"checked\"" : "";
        ?>
/>
			<?php 
        echo safe_htmlspecialchars(topage($pm['vclocalename']));
        ?>
 (<a href="operator.php?op=<?php 
        echo urlencode($pm['operatorid']);
        ?>
"
				><?php 
        echo safe_htmlspecialchars(topage($pm['vclogin']));
        ?>
</a>)
		</div>
	</div>
<?php 
    }
    ?>

	<div class="fbutton">
		<input type="image" name="save" value="" src="<?php 
    echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.save"));
    ?>
" alt="<?php 
    echo safe_htmlspecialchars(getlocal("button.save"));
    ?>
"/>
	</div>

	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
	</div>
</form>

<?php 
}
开发者ID:kuell,项目名称:chat,代码行数:90,代码来源:groupmembers.php

示例9: verifyparam

}
$groupid = verifyparam("gid", "/^\\d{1,9}\$/");
$page = array('groupid' => $groupid);
$page['operators'] = get_operators();
$errors = array();
$group = group_by_id($groupid);
if (!$group) {
    $errors[] = getlocal("page.group.no_such");
} else {
    if (isset($_POST['gid'])) {
        $new_members = array();
        foreach ($page['operators'] as $op) {
            if (verifyparam("op" . $op['operatorid'], "/^on\$/", "") == "on") {
                $new_members[] = $op['operatorid'];
            }
        }
        update_group_members($groupid, $new_members);
        header("Location: {$webimroot}/operator/groupmembers.php?gid={$groupid}&stored");
        exit;
    }
}
$page['formop'] = array();
$page['currentgroup'] = $group ? topage(htmlspecialchars($group['vclocalname'])) : "";
foreach (get_group_members($groupid) as $rel) {
    $page['formop'][] = $rel['operatorid'];
}
$page['stored'] = isset($_GET['stored']);
prepare_menu($operator);
setup_group_settings_tabs($groupid, 1);
start_html_output();
require '../view/groupmembers.php';
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:groupmembers.php

示例10: check_login

 *    Pavel Petroshenko - initial API and implementation
 */
require_once '../libs/common.php';
require_once '../libs/operator.php';
require_once '../libs/chat.php';
require_once '../libs/userinfo.php';
require_once '../libs/pagination.php';
$operator = check_login();
loadsettings();
setlocale(LC_TIME, getstring("time.locale"));
$page = array();
$query = isset($_GET['q']) ? myiconv(getoutputenc(), $webim_encoding, $_GET['q']) : false;
if ($query !== false) {
    $link = connect();
    $result = mysql_query("select {$mysqlprefix}chatgroup.groupid as groupid, vclocalname " . "from {$mysqlprefix}chatgroup order by vclocalname", $link);
    $groupName = array();
    while ($group = mysql_fetch_array($result, MYSQL_ASSOC)) {
        $groupName[$group['groupid']] = $group['vclocalname'];
    }
    mysql_free_result($result);
    $page['groupName'] = $groupName;
    $escapedQuery = mysql_real_escape_string($query, $link);
    select_with_pagintation("DISTINCT unix_timestamp({$mysqlprefix}chatthread.dtmcreated) as created, " . "unix_timestamp({$mysqlprefix}chatthread.dtmmodified) as modified, {$mysqlprefix}chatthread.threadid, " . "{$mysqlprefix}chatthread.remote, {$mysqlprefix}chatthread.agentName, {$mysqlprefix}chatthread.userName, groupid, " . "messageCount as size", "{$mysqlprefix}chatthread, {$mysqlprefix}chatmessage", array("{$mysqlprefix}chatmessage.threadid = {$mysqlprefix}chatthread.threadid", "(({$mysqlprefix}chatthread.userName LIKE '%%{$escapedQuery}%%') or ({$mysqlprefix}chatmessage.tmessage LIKE '%%{$escapedQuery}%%'))"), "order by created DESC", "DISTINCT {$mysqlprefix}chatthread.dtmcreated", $link);
    mysql_close($link);
    $page['formq'] = topage($query);
} else {
    setup_empty_pagination();
}
prepare_menu($operator);
start_html_output();
require '../view/thread_search.php';
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:history.php

示例11: verifyparam

} else {
    if (isset($_GET['id'])) {
        $banId = verifyparam('id', "/^\\d{1,10}\$/");
        $link = connect();
        $ban = select_one_row("select banid,(unix_timestamp(dtmtill)-unix_timestamp(CURRENT_TIMESTAMP)) as days,address,comment from {$mysqlprefix}chatban where banid = " . intval($banId), $link);
        mysql_close($link);
        if ($ban) {
            $page['banId'] = topage($ban['banid']);
            $page['formaddress'] = topage($ban['address']);
            $page['formdays'] = topage(round($ban['days'] / 86400));
            $page['formcomment'] = topage($ban['comment']);
        } else {
            $errors[] = "Wrong id";
        }
    } else {
        if (isset($_GET['thread'])) {
            $threadid = verifyparam('thread', "/^\\d{1,10}\$/");
            $thread = thread_by_id($threadid);
            if ($thread) {
                $page['thread'] = topage($thread['userName']);
                $page['threadid'] = $threadid;
                $page['formaddress'] = topage($thread['remote']);
                $page['formdays'] = 15;
            }
        }
    }
}
prepare_menu($operator, false);
start_html_output();
require '../view/ban.php';
exit;
开发者ID:kuell,项目名称:chat,代码行数:31,代码来源:ban.php

示例12: tpl_content

function tpl_content()
{
    global $page, $mibewroot;
    ?>

<?php 
    echo getlocal("page_search.intro");
    ?>
<br />
<br />

<form name="searchForm" method="get" action="<?php 
    echo $mibewroot;
    ?>
/operator/history.php">
	<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
	
	<div class="fieldForm">
		<div class="field">
			<div class="flabel"><?php 
    echo getlocal("page_analysis.full.text.search");
    ?>
</div>
			<div class="fvaluenodesc">
				<div id="searchtext">
					<input type="text" name="q" size="80" value="<?php 
    echo form_value('q');
    ?>
" class="formauth"/>
				</div>
				<div id="searchbutton">
					<input type="image" name="search" src="<?php 
    echo $mibewroot . safe_htmlspecialchars(getlocal("image.button.search"));
    ?>
" alt="<?php 
    echo safe_htmlspecialchars(getlocal("button.search"));
    ?>
"/>
				</div>
			</div>
			<br clear="all"/>
		</div>
	</div>

	</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<br/>


<?php 
    if ($page['pagination']) {
        ?>

<table class="list">
<thead>
<tr class="header">
<th>
	<?php 
        echo getlocal("page.analysis.search.head_name");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_host");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_operator");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_messages");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_time");
        ?>
</th></tr>
</thead>
<tbody>
<?php 
        if ($page['pagination.items']) {
            foreach ($page['pagination.items'] as $chatthread) {
                ?>
	<tr>
		<td>
			<a href="<?php 
                echo $mibewroot;
                ?>
/operator/threadprocessor.php?threadid=<?php 
                echo urlencode($chatthread['threadid']);
                ?>
" target="_blank" onclick="this.newWindow = window.open('<?php 
                echo $mibewroot;
                ?>
/operator/threadprocessor.php?threadid=<?php 
                echo urlencode($chatthread['threadid']);
                ?>
', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php 
                echo topage(safe_htmlspecialchars($chatthread['userName']));
                ?>
//.........这里部分代码省略.........
开发者ID:kuell,项目名称:chat,代码行数:101,代码来源:thread_search.php

示例13: tpl_content

function tpl_content()
{
    global $page, $mibewroot;
    ?>

<?php 
    echo getlocal("page.analysis.userhistory.intro");
    ?>
<br />
<br />

<?php 
    if ($page['pagination']) {
        ?>

<table class="list">
<thead>
<tr class="header">
<th>
	<?php 
        echo getlocal("page.analysis.search.head_name");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_host");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_operator");
        ?>
</th><th>
	<?php 
        echo getlocal("page.analysis.search.head_time");
        ?>
</th></tr>
</thead>
<tbody>
<?php 
        if ($page['pagination.items']) {
            foreach ($page['pagination.items'] as $chatthread) {
                ?>
	<tr>
		<td>
			<a href="<?php 
                echo $mibewroot;
                ?>
/operator/threadprocessor.php?threadid=<?php 
                echo urlencode($chatthread['threadid']);
                ?>
" target="_blank" onclick="this.newWindow = window.open('<?php 
                echo $mibewroot;
                ?>
/operator/threadprocessor.php?threadid=<?php 
                echo urlencode($chatthread['threadid']);
                ?>
', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php 
                echo topage(safe_htmlspecialchars($chatthread['userName']));
                ?>
</a>
		</td>
		<td>
		<?php 
                echo get_user_addr(topage($chatthread['remote']));
                ?>
		</td>
		<td>
		<?php 
                if ($chatthread['agentName']) {
                    echo topage(safe_htmlspecialchars($chatthread['agentName']));
                }
                ?>
		</td>
		<td>
			<?php 
                echo date_diff_to_text($chatthread['modified'] - $chatthread['created']);
                ?>
, <?php 
                echo date_to_text($chatthread['created']);
                ?>
		</td>
	</tr>
<?php 
            }
        } else {
            ?>
	<tr>
	<td colspan="5">
		<?php 
            echo getlocal("tag.pagination.no_items");
            ?>
	</td>
	</tr>
<?php 
        }
        ?>
</tbody>
</table>
<?php 
        if ($page['pagination.items']) {
            echo "<br/>";
//.........这里部分代码省略.........
开发者ID:kuell,项目名称:chat,代码行数:101,代码来源:userhistory.php

示例14: topage

        }
    } else {
        $page['formname'] = topage($name);
        $page['formdescription'] = topage($description);
        $page['formcommonname'] = topage($commonname);
        $page['formcommondescription'] = topage($commondescription);
        $page['formemail'] = topage($email);
        $page['grid'] = topage($groupid);
    }
} else {
    if (isset($_GET['gid'])) {
        $groupid = verifyparam('gid', "/^\\d{1,9}\$/");
        $group = group_by_id($groupid);
        if (!$group) {
            $errors[] = getlocal("page.group.no_such");
            $page['grid'] = topage($groupid);
        } else {
            $page['formname'] = topage($group['vclocalname']);
            $page['formdescription'] = topage($group['vclocaldescription']);
            $page['formcommonname'] = topage($group['vccommonname']);
            $page['formcommondescription'] = topage($group['vccommondescription']);
            $page['formemail'] = topage($group['vcemail']);
            $page['grid'] = topage($group['groupid']);
        }
    }
}
$page['stored'] = isset($_GET['stored']);
prepare_menu($operator);
setup_group_settings_tabs($groupid, 0);
start_html_output();
require '../view/group.php';
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:group.php

示例15: check_login

 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
require_once '../libs/common.php';
require_once '../libs/chat.php';
require_once '../libs/operator.php';
$operator = check_login();
setlocale(LC_TIME, getstring("time.locale"));
$page = array();
$page['operator'] = topage(get_operator_name($operator));
$page['availableDays'] = range(1, 31);
$page['availableMonth'] = get_month_selection(time() - 400 * 24 * 60 * 60, time() + 50 * 24 * 60 * 60);
$page['showresults'] = false;
$errors = array();
if (isset($_GET['startday'])) {
    $startday = verifyparam("startday", "/^\\d+\$/");
    $startmonth = verifyparam("startmonth", "/^\\d{2}.\\d{2}\$/");
    $endday = verifyparam("endday", "/^\\d+\$/");
    $endmonth = verifyparam("endmonth", "/^\\d{2}.\\d{2}\$/");
    $start = get_form_date($startday, $startmonth);
    $end = get_form_date($endday, $endmonth) + 24 * 60 * 60;
} else {
    $curr = getdate(time());
    if ($curr['mday'] < 7) {
        // previous month
开发者ID:paulcn,项目名称:mibew,代码行数:31,代码来源:statistics.php


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