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


PHP STemplate::display方法代码示例

本文整理汇总了PHP中STemplate::display方法的典型用法代码示例。如果您正苦于以下问题:PHP STemplate::display方法的具体用法?PHP STemplate::display怎么用?PHP STemplate::display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在STemplate的用法示例。


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

示例1: Copyright

<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    STemplate::display('add_popup.tpl');
}
开发者ID:reDecore,项目名称:redecore.me,代码行数:20,代码来源:add_popup.php

示例2: Copyright

<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
STemplate::display('log_out.tpl');
开发者ID:jd5688,项目名称:image-sharing-site,代码行数:17,代码来源:log_out.php

示例3: Copyright

<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
include "../include/config.php";
include_once "../include/functions/import.php";
verify_login_admin();
$AID = intval($_REQUEST[AID]);
if ($AID > 0) {
    $query = $conn->execute("select code, nsfwcode from advertisements where AID='" . mysql_real_escape_string($AID) . "' limit 1");
    $ad = $query->getrows();
    Stemplate::assign('ad', $ad[0]);
}
$mainmenu = "11";
$submenu = "1";
Stemplate::assign('mainmenu', $mainmenu);
Stemplate::assign('submenu', $submenu);
STemplate::display("administrator/global_header.tpl");
STemplate::display("administrator/ads_preview.tpl");
STemplate::display("administrator/global_footer.tpl");
开发者ID:jd5688,项目名称:image-sharing-site,代码行数:30,代码来源:ads_preview.php

示例4: Copyright

<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    $PID = intval(cleanit($_REQUEST['id']));
    if ($PID > 0) {
        STemplate::assign('PID', $PID);
        STemplate::display('delete_create_popup.tpl');
    }
} else {
    header("Location:" . $thebaseurl . "/login");
    exit;
}
开发者ID:reDecore,项目名称:redecore.me,代码行数:27,代码来源:delete_create_popup.php

示例5: Copyright

<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
include "include/functions/import.php";
$SID = intval($_SESSION['USERID']);
if ($SID > 0) {
    $BID = intval(cleanit($_REQUEST['id']));
    if ($BID > 0) {
        STemplate::assign('BID', $BID);
        STemplate::display('delete_board_popup.tpl');
    }
} else {
    header("Location:" . $thebaseurl . "/login");
    exit;
}
开发者ID:reDecore,项目名称:redecore.me,代码行数:27,代码来源:delete_board_popup.php

示例6:

<?php

include "../include/config.php";
include "../include/function.php";
if ($_REQUEST[action] == "delete") {
    $sql = "delete from poll_question  where poll_id='{$_REQUEST['poll_id']}'";
    $conn->execute($sql);
    $err = "Delete successfull";
}
$sql = "select * from poll_question";
$rs = $conn->execute($sql);
$pollArray = $rs->getarray();
Stemplate::assign('pollArray', $pollArray);
Stemplate::assign('err', $err);
STemplate::display("siteadmin/viewpolllist.tpl");
?>

开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:16,代码来源:viewpolllist.php

示例7: elseif

    }
    if ($tpage > 1) {
        $nextpage = $page + 1;
        $prevpage = $page - 1;
        $prevlink = "<a href='adv.php?a={$_REQUEST['a']}&status={$status}&page={$prevpage}&sort={$_REQUEST['sort']}'><img src='../images/icon/previous.gif' title='Previous' alt='Previous' border='0' style='vertical-align: middle;'></a>";
        $nextlink = "<a href='adv.php?a={$_REQUEST['a']}&status={$status}&page={$nextpage}&sort={$_REQUEST['sort']}'><img src='../images/icon/next.gif' title='Next' alt='Next' border='0' style='vertical-align: middle;'></a>";
        if ($page == $tpage) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink}";
        } elseif ($tpage > $page && $page > 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$prevlink} &nbsp;&nbsp;{$nextlink}";
        } elseif ($tpage > $page && $page <= 1) {
            $link .= "&nbsp;&nbsp;|&nbsp;{$nextlink}";
        }
    }
    $sql = "SELECT * from adv {$query} limit {$startfrom}, {$listing_per_page}";
    $rs = $conn->Execute($sql);
    $total = $rs->recordcount() + 0;
    $adv = $rs->getrows();
    STemplate::assign('link', $link);
    STemplate::assign('grandtotal', $grandtotal + 0);
    STemplate::assign('total', $total + 0);
    STemplate::assign('page', $page + 0);
    STemplate::assign('adv', $adv);
}
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/adv.tpl");
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:30,代码来源:adv.php

示例8: header

        header("Location: packedit.php?action=add&msg=Package+added+successfully");
    }
}
if ($_REQUEST['pack_id'] != "") {
    $rs = $conn->execute("select * from package where pack_id={$_REQUEST['pack_id']}");
    $package = $rs->getrows();
    Stemplate::assign('package', $package[0]);
    if ($package[0]['period'] == "Day") {
        $daysel = "selected";
    } elseif ($package[0]['period'] == "Month") {
        $monthsel = "selected";
    } elseif ($package[0]['period'] == "Year") {
        $yearsel = "selected";
    }
    if ($package[0]['status'] == "Active") {
        $actsel = "selected";
    } elseif ($package[0]['status'] == "Inactive") {
        $inactsel = "selected";
    }
}
$period_ops = "<option value='Month' {$monthsel}>Month</option>\n                        <option value='Year' {$yearsel}>Year</option>";
STemplate::assign('period_ops', $period_ops);
$status_ops = "<option value='Active' {$actsel}>Active</option>\n                        <option value='Inactive' {$inactsel}>Inactive</option>";
STemplate::assign('status_ops', $status_ops);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/packedit.tpl");
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:30,代码来源:packedit.php

示例9:

$featured_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='no' {$nosel}>No</option>";
STemplate::assign('featured_box', $featured_box);
if ($video[0]['be_comment'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$comment_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('comment_box', $comment_box);
if ($video[0]['be_rated'] == "yes") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$rate_box = "<option value='yes' {$yessel}>Yes</option>\n                          <option value='' {$nosel}>No</option>";
STemplate::assign('rate_box', $rate_box);
if ($video[0]['embed'] == "enabled") {
    $yessel = "selected";
} else {
    $nosel = "selected";
}
$embed_box = "<option value='enabled' {$yessel}>Enable</option>\n                          <option value='' {$nosel}>Disable</option>";
STemplate::assign('embed_box', $embed_box);
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('video', $video[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/videoedit.tpl");
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:30,代码来源:videoedit.php

示例10: elseif

<?php

include "../include/config.php";
STemplate::assign('url', $config['baseurl']);
//PROCESS LOGIN
if (isset($_POST['login'])) {
    if ($_POST['uname'] == "" or $_POST['pass'] == "") {
        $err = "Please Provide Username and Password.";
    } elseif ($_POST['uname'] != $config['admin_name'] and $_POST['pass'] != $config['admin_pass']) {
        $err = "Invalid Username and/or Password Provided";
    } elseif ($_POST['uname'] == $config['admin_name'] and $_POST['pass'] == $config['admin_pass']) {
        //REGISTER SESSION
        session_register("AUID");
        session_register("APASSWORD");
        $_SESSION['AUID'] = $config['admin_name'];
        $_SESSION['APASSWORD'] = $config['admin_pass'];
        $link = "main.php?active=Users";
        header("Location: {$link}");
    } else {
        $err = "Invalid Username/Password. Login failed.";
    }
}
STemplate::assign('msg', $msg);
STemplate::assign('err', $err);
STemplate::display('siteadmin/login.tpl');
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:25,代码来源:login.php

示例11: elseif

STemplate::assign('posting_box', $posting_box);
if ($group[0]['gimage'] == "immediate") {
    $i1sel = "selected";
} elseif ($group[0]['gimage'] == "owner_only") {
    $i2sel = "selected";
}
$icon_box = "<option value='immediate' {$i1sel}>immediate</option>\n                          <option value='owner_only' {$i2sel}>owner_only</option>";
STemplate::assign('icon_box', $icon_box);
if ($group[0]['featured'] == "yes") {
    $activesel = "selected";
} else {
    $inactivesel = "selected";
}
$featured_box = "<option value='yes' {$activesel}>Yes</option>\n                          <option value='no' {$inactivesel}>No</option>";
STemplate::assign('featured_box', $featured_box);
$mych = explode("|", $group[0]['channel']);
$ch = insert_list_channel();
for ($i = 0; $ch[$i]['ch'] != ""; $i++) {
    if (in_array($ch[$i]['id'], $mych)) {
        $checked = "checked";
    } else {
        $checked = "";
    }
    $ch_checkbox .= "<input type=checkbox name=channel[] value=" . $ch[$i]['id'] . " {$checked}>" . $ch[$i]['ch'] . "</input><br>";
}
STemplate::assign('ch_checkbox', $ch_checkbox);
Stemplate::assign('group', $group[0]);
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/groupedit.tpl");
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:30,代码来源:groupedit.php

示例12: header

    header("location: {$redirect}");
} else {
    if ($_POST['login'] != "") {
        $adminusername = $_POST['username'];
        $adminpassword = $_POST['password'];
        if ($adminusername == "") {
            $error = "Error: Username not entered.";
        } elseif ($adminpassword == "") {
            $error = "Error: Password not entered.";
        } else {
            $encodedadminpassword = md5($adminpassword);
            $query = "SELECT * FROM administrators WHERE username='" . mysql_real_escape_string($adminusername) . "' AND password='" . mysql_real_escape_string($encodedadminpassword) . "'";
            $executequery = $conn->execute($query);
            $getid = $executequery->fields[ADMINID];
            $getusername = $executequery->fields[username];
            $getpassword = $executequery->fields[password];
            if (is_numeric($getid) && $getusername != "" && $getpassword != "" && $getusername == $adminusername && $getpassword == $encodedadminpassword) {
                $_SESSION['ADMINID'] = $getid;
                $_SESSION['ADMINUSERNAME'] = $getusername;
                $_SESSION['ADMINPASSWORD'] = $encodedadminpassword;
                $redirect = $config['adminurl'] . "/home.php";
                header("location: {$redirect}");
            } else {
                $error = "Invalid username/password entered.";
            }
        }
    }
    STemplate::assign('message', $message);
    STemplate::assign('error', $error);
    STemplate::display('administrator/index.tpl');
}
开发者ID:jd5688,项目名称:image-sharing-site,代码行数:31,代码来源:index.php

示例13: elseif

    } elseif ($_POST['htmlCode'] == "") {
        $err = "Please provide Message Body";
    }
    if ($err != "") {
        echo "<script language='Javascript'>\n                        alert('{$err}');\n                        </script>";
    } else {
        $code = stripslashes($_POST['htmlCode']);
        $code = longwordbreak($code, 40, ' ');
        $code = remove_tags($code, array('object' => true, 'embed' => true, 'applet' => true, 'script' => true));
        $code = fixcharacters($code);
        $dt = Date("Y-m-d H:i:s");
        $send = explode("-", $sendto);
        while (list($k, $v) = each($send)) {
            $sql = "Insert into msgboard(msgfrom,msgto,msgcaption,msgbody,msgdatetime,msgisread)\n                                values({$USERID},{$v},'{$msgcaption}','{$code}','{$dt}','no')";
            $conn->Execute($sql);
        }
        echo "<script language='JavaScript'>\n                        parent.location.href='msgsuccess.php?sendto={$sendto}';\n                        </script>";
        exit;
    }
}
$editor->set_code($_POST['htmlCode']);
$txt = $editor->return_editor('100%', 300);
//DECLARE COMMON SMARTY VALUES
STemplate::assign('url', $config[baseurl]);
STemplate::assign('imgurl', $config[imgurl]);
STemplate::assign('site', $config[site_title]);
STemplate::assign('txt', $txt);
STemplate::assign('sendto', $sendto);
STemplate::assign('mtype', $mtype);
STemplate::display('siteadmin/test.tpl');
ob_end_flush();
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:31,代码来源:composer.php

示例14: Copyright

<?php

/**************************************************************************************************
| PinMe Script
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
STemplate::display('language.tpl');
开发者ID:reDecore,项目名称:redecore.me,代码行数:16,代码来源:language.php

示例15:

<?php

include "../include/config.php";
include "../include/function.php";
if ($_REQUEST['submit']) {
    $sql = "update sconfig set svalue='{$_REQUEST['selUserVote']}' where soption='video_rating'";
    $conn->execute($sql);
    $sql = "update sconfig set svalue='{$_REQUEST['selUser_poll']}' where soption='user_poll'";
    $conn->execute($sql);
}
if ($_REQUEST[msg] != "") {
    $msg = $_REQUEST[msg];
}
Stemplate::assign('err', $err);
Stemplate::assign('msg', $msg);
STemplate::display("siteadmin/miscellaneous.html");
开发者ID:Terry89tx,项目名称:itzUncut-Version-2.0,代码行数:16,代码来源:miscellaneous.php


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