本文整理汇总了PHP中clsTemplate类的典型用法代码示例。如果您正苦于以下问题:PHP clsTemplate类的具体用法?PHP clsTemplate怎么用?PHP clsTemplate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了clsTemplate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: clsheader_outofbound
$header_outofbound = new clsheader_outofbound("../../../includes/", "header_outofbound", $MainPage);
$header_outofbound->Initialize();
$footer = new clsfooter("../../../includes/", "footer", $MainPage);
$footer->Initialize();
$MainPage->header_outofbound =& $header_outofbound;
$MainPage->footer =& $footer;
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
if ($Charset) {
header("Content-Type: " . $ContentType . "; charset=" . $Charset);
} else {
header("Content-Type: " . $ContentType);
}
//End Initialize Objects
//Initialize HTML Template @1-50A154CB
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
if (strlen($TemplateSource)) {
$Tpl->LoadTemplateFromStr($TemplateSource, $BlockToParse, "UTF-8");
} else {
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "UTF-8");
}
$Tpl->SetVar("CCS_PathToRoot", $PathToRoot);
$Tpl->block_path = "/{$BlockToParse}";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
$Attributes->SetValue("pathToRoot", "../../../");
$Attributes->Show();
//End Initialize HTML Template
//Execute Components @1-03EC4543
$footer->Operations();
$header_outofbound->Operations();
//End Execute Components
开发者ID:Okwori,项目名称:iRadiology,代码行数:31,代码来源:index.php
示例2: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-332FBF3C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
if ($_POST["truncate"]) {
$db = new clsDBDBNetConnect();
$query = "TRUNCATE TABLE `listing_index`";
$db->query($query);
header("Location: ReIndex.php?truncatedone=1");
exit;
}
$options = "";
$db = new clsDBNetConnect();
$query = "Select `ItemNum`, `title`, `itemID` from items where status = 1 order by `title` asc";
$db->query($query);
$i = 0;
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:ReIndex.php
示例3: clsUser
if (!isset($_SESSION['objUser'])) {
$objUser = clsUser::getCookie();
} else {
$objUser = $_SESSION['objUser'];
}
/* This re-loads the user object in case it's changed. */
if ($objUser) {
$objUser = new clsUser($objUser->get('id'));
}
if ($objUser && $objUser->isNew()) {
$objUser = null;
}
if (!preg_match('/^[a-zA-Z2-9_-]*$/', $strAction)) {
throw new Exception(ERRORMSG_INVALID);
}
$objTemplate = new clsTemplate('default');
$objTemplate->setText('SCRIPT', clsDB::initializeJS());
$objTemplate->setText('TITLE', "OSPAP2");
/* Inline CSS for advanced. */
$objTemplate->setText('HEAD', clsUser::getAdvancedStyle($objUser));
if (isset($_REQUEST['error']) && isset($arrMessages[$_REQUEST['error']])) {
$objTemplate->setText('ERROR', $arrMessages[$_REQUEST['error']]);
} else {
if (isset($_REQUEST['message']) && isset($arrMessages[$_REQUEST['message']])) {
$objTemplate->setText('MESSAGE', $arrMessages[$_REQUEST['message']]);
}
}
$objTemplate->setScript('MENU', 'menu');
$objTemplate->setScript('LOGO', 'logo');
$objTemplate->setText('COPYRIGHT', "Written by <a href='mailto:[email protected]'>Ron</a>. This page and code are public domain. Code is available upon request. No warranty or promises of any kind.");
switch ($strAction) {
开发者ID:shifter,项目名称:ospap2,代码行数:31,代码来源:index.php
示例4: BindEvents
if ($Script != "") {
$ScriptIncludes = $ScriptIncludes . "<script src=\"" . $PathToRoot . $Script . "\" type=\"text/javascript\"></script>\n";
}
}
$Attributes->SetValue("scriptIncludes", $ScriptIncludes);
BindEvents();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
if ($Charset) {
header("Content-Type: " . $ContentType . "; charset=" . $Charset);
} else {
header("Content-Type: " . $ContentType);
}
//End Initialize Objects
//Initialize HTML Template @1-A7427295
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
if (strlen($TemplateSource)) {
$Tpl->LoadTemplateFromStr($TemplateSource, $BlockToParse, "CP1252");
} else {
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252");
}
$Tpl->SetVar("CCS_PathToRoot", $PathToRoot);
$Tpl->SetVar("CCS_PathToMasterPage", RelativePath . $PathToCurrentMasterPage);
$Tpl->block_path = "/{$BlockToParse}";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
$Attributes->SetValue("pathToRoot", "../");
$Attributes->Show();
//End Initialize HTML Template
//Execute Components @1-93DAD1DB
$MasterPage->Operations();
$modal_end->Operations();
开发者ID:rayminami,项目名称:chumanis,代码行数:31,代码来源:p_user_attribute_form.php
示例5: CCGetEvent
//End Initialize Objects
//Execute Components @1-B06FCBC8
$Header->Operations();
$itemsSearch->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
//include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
$Tpl->SetVar("QueryString", CCGetQueryString("QueryString", array()));
//Show Page @1-7E62AA77
$Header->Show("Header");
$itemsSearch->Show();
$categories->Show();
$items->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page
if ($file != "templates/ViewCat.html") {
unlink($file);
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:ViewCat.php
示例6: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-332FBF3C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
if ($_GET["generate"]) {
print "Generating...<br>";
$catlist = new clsDBNetConnect();
$catlist->query("select * from categories where sub_cat_id=1");
while ($catlist->next_record()) {
$cats[$catlist->f("cat_id")] = $catlist->f("name");
$catlist2 = new clsDBNetConnect();
$catlist2->query("select * from categories where sub_cat_id=" . $catlist->f("cat_id"));
while ($catlist2->next_record()) {
$cats[$catlist2->f("cat_id")] = $cats[$catlist->f("cat_id")] . " > " . $catlist2->f("name");
$catlist3 = new clsDBNetConnect();
$catlist3->query("select * from categories where sub_cat_id=" . $catlist2->f("cat_id"));
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:FroogleSubmit.php
示例7: CCGetEvent
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
if ($_GET["id"] && !$_GET["submit"]){
$db = new clsDBNetConnect;
$query = "select * from feedback where `counter` = '" . $_GET["id"] . "'";
$db->query($query);
if (!$db->next_record()){
$query = "select * from feedback where id = '" . $_GET["id"] . "' and being_rated = '" . CCGetUserID() . "'";
$db->query($query);
if ($db->next_record()){
if ($db->f("rating") == 1)
$ratetext = "Positive";
if ($db->f("rating") == 0)
$ratetext = "Neutral";
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:RateUser.php
示例8: CCGetEvent
//Execute Components @1-12EAE39F
$Header->Operations();
$charges->Operation();
$charges1->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
$Tpl->setVar("ItemNum", CCGetSession("RecentItemNum"));
$Tpl->setVar("finalcat", $finalcat);
//Show Page @1-C99B99CD
$Header->Show("Header");
$charges->Show();
$charges1->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page
//Unload Page @1-AB7622EF
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:StartListing.php
示例9: CCGetEvent
//Execute Components @1-FC6178F0
$Header->Operations();
$charges1->Operation();
$PayPalPay->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
if ($_GET["ItemNum"]) {
$db = new clsDBNetConnect();
$query = "select * from items where ItemNum = '" . mysql_escape_string($_GET["ItemNum"]) . "'";
$db->query($query);
if ($db->next_record()) {
$Tpl->SetVar("ItemNum", $_GET["ItemNum"]);
$Tpl->SetVar("amount", $db->f("amt_due"));
$Tpl->SetVar("charge", $db->f("amt_due"));
}
}
//Show Page @1-39CAA23C
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:MakePayment.php
示例10: display
public function display($objUser)
{
$objAlbumOwner = $this->getForeignObject('user');
$intPictureCount = sizeof($this->getPictures());
$intSubAlbumCount = sizeof($this->getSubAlbums($objUser));
if ($intPictureCount == 0 && $intAlbumCount == 0 && $objUser && $objUser->get('show_empty') == 0) {
return '';
}
$objAlbumTemplate = new clsTemplate('album');
$objAlbumTemplate->setText('NAME', "<a href='index.php?action=albums&" . $this->getIDPair() . "' class='albumentrylink'>" . $this->get('name') . "</a> " . $this->getNewIcon($objUser));
$objAlbumTemplate->setText('ID', $this->get('id'));
$objAlbumTemplate->setText('USERNAME', $objAlbumOwner->get('username'));
$objAlbumTemplate->setText('CAPTION', bbcode_format($this->get('caption')));
$objAlbumTemplate->setText('EXPANDCLICK', "toggle_album(\"" . $this->get('id') . "\");");
$objAlbumTemplate->setText('LASTUPDATED', $this->getLastUpdated());
$objAlbumTemplate->setText('PICTURECOUNT', $intPictureCount);
$objAlbumTemplate->setText('ALBUMCOUNT', $intSubAlbumCount);
if ($intPictureCount == 0 && $intSubAlbumCount == 0) {
$objAlbumTemplate->setText('ISEMPTY', '(empty)');
}
$strPreview = "";
$arrPictures = $this->getTopPictures(ALBUM_NUMPREVIEW);
foreach ($arrPictures as $objPicture) {
$objAlbumTemplate->setText('PREVIEW', $objPicture->getHtmlThumbnail(ALBUM_PREVIEWSIZE, ALBUM_PREVIEWSIZE));
}
print $objAlbumTemplate->get();
}
开发者ID:shifter,项目名称:ospap2,代码行数:27,代码来源:clsAlbum.php
示例11: CCGetEvent
//End Initialize Objects
//Execute Components @1-9D3C7E64
$Header->Operations();
$usercontrol->Operation();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
$subscriptions = subscription_membership(CCGetUserID(), "icontext", "<br><br>", "1");
$Tpl->setVar("subscriptions", $subscriptions);
//Show Page @1-BE2A4A0B
$Header->Show("Header");
$usercontrol->Show();
$Logout->Show();
$emails->Show();
$watchlist->Show();
$items->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:myaccount.php
示例12: CCGetEvent
$Footer->Initialize();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
//Show Page @1-F9F38336
$Header->Show("Header");
$Footer->Show("Footer");
$Tpl->setVar("cattable", $cattable);
$Tpl->setVar("catlinks", $links);
$Tpl->PParse("main", false);
//End Show Page
//Unload Page @1-AB7622EF
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
unset($Tpl);
//End Unload Page
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:CatDetails.php
示例13: header
}
/* Make sure that users can only edit their own pictures. */
$objPicture->delete();
$objPicture->save();
header("Location: index.php?action=upload&subaction=preview");
}
if ($strSubAction == 'preview') {
$objTemplate->setText('PAGETITLE', "Pending Pictures");
$objBreadcrumbs->add('Upload', 'index.php?action=upload');
$objBreadcrumbs->add('Pending', 'index.php?action=upload&subaction=preview');
$arrPictures = clsPicture::getPending($objUser);
print "You have <strong>" . sizeof($arrPictures) . "</strong> pictures waiting for attention" . ($objUser ? "" : " (note: unsaved images from all guests will appear here)") . ":<br><br>";
foreach ($arrPictures as $objPicture) {
$objPicture = new clsPicture($objPicture->get('id'));
$objAlbum = new clsAlbum($objPicture->get('album_id'));
$objTemplate = new clsTemplate('preview');
$objTemplate->setText('HIDDEN', $objPicture->getHiddenField('id'));
$objTemplate->setText('ALBUM', $objPicture->getCombo('album_id', clsDB::getOptionsFromList($objAlbum->getPostableAlbums($objUser), 'name', 'id', "Select an album")));
$objTemplate->setText('ID', $objPicture->get('id'));
$objTemplate->setText('IMAGE', $objPicture->getHtmlThumbnail(250, 250));
/* TODO: Customizable? */
$objTemplate->setText('NAME', $objPicture->get('original_name'));
$objTemplate->setText('WIDTH', $objPicture->get('width'));
$objTemplate->setText('HEIGHT', $objPicture->get('height'));
$objTemplate->setText('SAVEDELETE', $objPicture->getCombo('subaction', array('confirm' => 'Keep', 'delete' => 'Don\'t keep'), null, true));
$objTemplate->setText('TITLE', $objPicture->getTextField('title'));
$objTemplate->setText('CAPTION', $objPicture->getTextArea('caption'));
$objTemplate->setText('SUBMIT', $objPicture->getSubmit('Save'));
print $objTemplate->get();
}
}
开发者ID:shifter,项目名称:ospap2,代码行数:31,代码来源:upload.php
示例14: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
//Show Page @1-F9F38336
$Header->Show("Header");
$Footer->Show("Footer");
$Tpl->setVar("inherited", $inherited);
$Tpl->setVar("thiscat", $thiscat);
$Tpl->setVar("name", stripslashes($_POST["name"]));
$Tpl->setVar("template_var", stripslashes($_POST["template_var"]));
$Tpl->setVar("description", stripslashes($_POST["description"]));
$Tpl->setVar("cat", $_REQUEST["cat"]);
$Tpl->setVar("field", $_REQUEST["field"]);
$Tpl->setVar("catname", stripslashes($catname));
$Tpl->setVar("error", $error);
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:customtb.php
示例15: header
header("Location: index.php?action=picture&" . $objPrevPicture->getIDPair());
} else {
if ($objNextPicture) {
header("Location: index.php?action=picture&" . $objNextPicture->getIDPair());
} else {
header("Location: index.php?action=albums&" . $objAlbum->getIDPair());
}
}
}
}
if ($strSubAction == 'edit') {
if (!$objPicture->canEdit($objUser)) {
throw new Exception('exception_accessdenied');
}
$objTemplate->setText('PAGETITLE', "Editing " . $objPicture->get('title'));
$objEditTemplate = new clsTemplate('editpicture');
$objEditTemplate->setText('HIDDEN', "<input type='hidden' name='action' value='picture'>");
$objEditTemplate->setText('HIDDEN', "<input type='hidden' name='subaction' value='save'>");
$objEditTemplate->setText('HIDDEN', $objPicture->getHiddenField('id'));
$objEditTemplate->setText('ID', $objPicture->get('id'));
$objEditTemplate->setText('WIDTH', $objPicture->get('width'));
$objEditTemplate->setText('HEIGHT', $objPicture->get('height'));
$objEditTemplate->setText('IMAGE', $objPicture->getHtmlThumbnail(250, 250));
$objEditTemplate->setText('ALBUM', $objAlbum->get('name'));
$objEditTemplate->setText('TITLE', $objPicture->getTextField('title'));
$objEditTemplate->setText('CAPTION', $objPicture->getTextArea('caption', 4, 45));
$objEditTemplate->setText('CONFIRMED', $objPicture->getCheckNoJavascript('confirmed'));
$objEditTemplate->setText('SUBMIT', $objPicture->getSubmit('Save'));
print $objEditTemplate->get();
}
if ($strSubAction == 'save') {
开发者ID:shifter,项目名称:ospap2,代码行数:31,代码来源:picture.php
示例16: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-AB1E45CE
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
include './Lang/lang_class.php';
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
if ($_GET["code"] && !$_GET["Cancel"]) {
$error = "";
$query = "Select * from coupons where code='" . mysql_escape_string($_GET["code"]) . "'";
$db = new clsDBNetConnect();
$db->query($query);
if ($db->next_record()) {
if (time() < $db->f("start")) {
$error = "This Coupon Has Not Started Yet";
}
if (time() > $db->f("end")) {
$error = "This Coupon Has Expired";
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:Coupons.php
示例17: foreach
foreach ($arrInvitedUsers as $objMember) {
$str = '';
$str .= "<tr>";
$str .= "<td><a href='index.php?action=members&subaction=view&" . $objMember->getIDPair() . "'>" . $objMember->get('username') . "</a></td>";
$str .= "<td>Awaiting Acceptance</td>";
$str .= "</tr>";
$objGroupTemplate->setText('PENDING', $str);
}
print $objGroupTemplate->get();
}
if ($strSubAction == 'edit') {
if (!$objGroup->canEdit($objUser)) {
throw new Exception('exception_accessdenied');
}
$objTemplate->setText('PAGETITLE', "Editing Group: " . $objGroup->get('name'));
$objGroupTemplate = new clsTemplate('editgroup');
$objGroupTemplate->setText('HIDDEN', $objGroup->getHiddenField('id'));
$objGroupTemplate->setText('HIDDEN', "<input type='hidden' name='action' value='groups'>");
$objGroupTemplate->setText('HIDDEN', "<input type='hidden' name='subaction' value='save'>");
$objGroupTemplate->setText('NAME', $objGroup->getTextField('name'));
$objGroupTemplate->setText('ISPRIVATE', $objGroup->getCheckNoJavascript('is_private'));
$objGroupTemplate->setText('ISHIDDEN', $objGroup->getCheckNoJavascript('is_hidden'));
$objGroupTemplate->setText('SAVE', $objGroup->getSubmit('Save'));
print $objGroupTemplate->get();
}
if ($strSubAction == 'save') {
if (!$objGroup->canEdit($objUser)) {
throw new Exception('exception_accessdenied');
}
$objGroup->getFromRequest(array('id', 'name', 'is_private', 'is_hidden'));
if ($objGroup->isNew()) {
开发者ID:shifter,项目名称:ospap2,代码行数:31,代码来源:groups.php
示例18: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
if ($_POST["preview"]) {
$name = PreviewTemplate($_GET["page"]);
$JS = "<SCRIPT LANGUAGE=\"JavaScript\">\n<!--\nwindow.open('../" . $phppage . "&prev=" . $name . "','Ad','toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600');\n-->\n</script>";
$Tpl->setVar("JS", $JS);
}
//Show Page @1-F9F38336
$Header->Show("Header");
$Footer->Show("Footer");
$Tpl->setVar("textareavalue", htmlspecialchars($textareavalue));
if ($_POST["page_temp"]) {
$Tpl->setVar("textareavalue", htmlspecialchars(stripslashes($_POST["page_temp"])));
}
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:edittemplates.php
示例19: clsTemplate
$objMemberTemplate->setText('PASSWORD2', $objMember->getPasswordField('password2'));
$objMemberTemplate->setText('EMAIL', $objMember->getTextField('email'));
$objMemberTemplate->setText('ADVANCED', $objMember->getCheckNoJavascript('is_advanced'));
$objMemberTemplate->setText('SHOWEMPTY', $objMember->getCheckNoJavascript('show_empty'));
$objMemberTemplate->setText('REMEMBERFILTER', $objMember->getCheckNoJavascript('remember_filter'));
$objMemberTemplate->setText('REALNAME', $objMember->getTextField('realname'));
$objMemberTemplate->setText('LOCATION', $objMember->getTextField('location'));
$objMemberTemplate->setText('SAVE', $objMember->getSubmit('Save'));
if (!$objMember->isNew()) {
$objMemberTemplate->setText('BLANK', "(Blank not to change it.)");
}
print $objMemberTemplate->get();
} else {
$objTemplate->setText('PAGETITLE', 'Viewing ' . $objMember->get('username'));
$objBreadcrumbs->add($objMember->get('username'), "index.php?action=members&subaction=view&" . $objMember->getIDPair());
$objMemberTemplate = new clsTemplate('viewuser');
$objMemberTemplate->setText('USERNAME', $objMember->get('username'));
$objMemberTemplate->setText('REALNAME', $objMember->get('realname'));
$objMemberTemplate->setText('LOCATION', $objMember->get('location'));
print $objMemberTemplate->get();
}
}
if ($strSubAction == 'save') {
if (!clsUser::canEdit($objMember, $objUser)) {
throw new Exception('exception_accessdenied');
}
$objMember->getFromRequest(array('id', 'username', 'password1', 'password2', 'email', 'is_advanced', 'show_empty', 'remember_filter', 'realname', 'location'));
if ($objMember->isNew()) {
$ret = $objMember->attemptCreate();
if (is_string($ret)) {
$objMember->remove('password1');
开发者ID:shifter,项目名称:ospap2,代码行数:31,代码来源:members.php
示例20: CCGetEvent
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects
//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-BEB91355
if ($Redirect) {
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
header("Location: " . $Redirect);
exit;
}
//End Go to destination page
//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template
$db = new clsDBNetConnect();
@$db->query("show tables like \"phpads_zones\"");
if ($db->next_record()) {
if (file_exists("../phpads/index.php")) {
$Tpl->SetVar("phpadsinstall", "<a class=\"ItechClsDataLink\" href=\"../phpads/\">Continue to the phpAdsNew Installer</a>");
} else {
$Tpl->SetVar("phpadsinstall", "Please Double Check Steps 2 and 3. This will turn to the installation link when the /phpads/ directory has been properly uploaded");
}
} else {
$Tpl->SetVar("phpadsinstall", "Once steps 1-3 above have been properly executed this will turn into a 'Continue with Installation' link");
}
//Show Page @1-F9F38336
开发者ID:4v4t4r,项目名称:CTF-LCC,代码行数:31,代码来源:phpads.php
注:本文中的clsTemplate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论