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


PHP Settings::_方法代码示例

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


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

示例1: setUp

 public function setUp()
 {
     $this->api = new Api();
     $this->api->setup(Settings::_('xero'));
     $this->api->sandbox(true);
     $this->api->testing = true;
 }
开发者ID:agencycore,项目名称:xero,代码行数:7,代码来源:TestCase.php

示例2: infodirtoHTML

 public function infodirtoHTML($dir)
 {
     $w = File::a2r($dir);
     $ret = "";
     //		$ret .=	"<input type='submit' id='multiselectbutton' value='".Settings::_("adminpanel","multiselect")."'>";
     /// Folder name
     if (strlen($w) > 1 && $this->isfile) {
         $ret .= "<form class='niceform pure-form' action='?a=Mov' method='post'>\r\n\t\t\t\t\t<input type='hidden' name='move' value='rename'>\r\n\t\t\t\t\t<input type='hidden' name='pathFrom' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t<input type='text' name='pathTo' style='max-width:100%; white-space: normal;' value=\"" . htmlentities(basename($w), ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("adminpanel", "rename") . "'>\r\n\t\t\t\t</form>";
     } else {
         $ret .= "<form class='niceform pure-form' action='?a=Upl' method='post'>\r\n\t\t\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t\t\t<input id='foldername' name='newdir' style='max-width:100%;' type='text' value='" . Settings::_("adminpanel", "new") . "'>\r\n\t\t\t\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("adminpanel", "create") . "'>\r\n\t\t\t\t\t</form>";
         /// Upload Images form
         /*$ret .= "<div id='files'></div>";
         		$w=File::a2r(CurrentUser::$path);
         		$ret .= "<form class='dropzone' id=\"".htmlentities($w, ENT_QUOTES ,'UTF-8')."\" 
         			action='?a=Upl' method='POST' enctype='multipart/form-data'>
         			<input type='hidden' name='path' value=\"".htmlentities($w, ENT_QUOTES ,'UTF-8')."\">
         			<input type='hidden' name='inherit' value='1' />
         			<input type='file' name='images[]' multiple >
         			<button>Upload</button>
         			<div>".Settings::_("adminpanel","upload")."</div>
         			</form>";
         			*/
     }
     return $ret;
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:25,代码来源:AdminPanel.php

示例3: toHTML

 /**
  * Display BoardHeader on Website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div class='header'>";
     /// Title
     echo "<h1>" . htmlentities($this->title, ENT_QUOTES, 'UTF-8') . "</h1>";
     echo "<span>";
     if (!Settings::$nodownload) {
         /// Zip button
         echo "<a href='?t=Zip&f={$this->path}' class='button'>" . Settings::_("boardheader", "download") . "</a>\n";
     }
     echo "</span>\n";
     echo "</div>\n";
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:19,代码来源:BoardHeader.php

示例4: infodirtoHTML

 public function infodirtoHTML($dir)
 {
     $w = File::a2r($dir);
     $ret = "";
     /// Folder name
     if (strlen($w) > 1) {
         $ret .= "<form class='rename' action='?a=Mov' method='post'>\n\t\t\t\t\t<input type='hidden' name='move' value='rename'>\n\t\t\t\t\t<input type='hidden' name='pathFrom' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<input type='text' name='pathTo' value=\"" . htmlentities(basename($w), ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t\t<input type='submit' value='" . Settings::_("adminpanel", "rename") . "'>\n\t\t\t\t</fieldset>\n\t\t\t\t</form>";
     }
     if (!$this->isfile) {
         $ret .= "<form class='create' action='?a=Upl' method='post'>\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t\t\t<input id='foldername' name='newdir' type='text' value='" . Settings::_("adminpanel", "new") . "'>\n\t\t\t\t\t\t<input type='submit' value='" . Settings::_("adminpanel", "create") . "'>\n\t\t\t\t\t</fieldset>\n\t\t\t\t\t</form>";
         /// Upload Images form
         $ret .= "<div id='files'></div><form class='dropzone' id=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\" \n\t\t\t\taction='?a=Upl' method='POST' enctype='multipart/form-data'>\n\t\t\t\t<input type='hidden' name='path' value=\"" . htmlentities($w, ENT_QUOTES, 'UTF-8') . "\">\n\t\t\t\t<input type='file' name='images[]' multiple >\n\t\t\t\t<button>Upload</button>\n\t\t\t\t<div>" . Settings::_("adminpanel", "upload") . "</div>\n\t\t\t\t</form>";
     }
     return $ret;
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:15,代码来源:AdminPanel.php

示例5: toHTML

 /**
  * Display AdminMenu on website
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     foreach ($this->options as $op => $val) {
         if ($_GET['a'] == $op) {
             $class = "menu_item selected";
         } else {
             $class = "menu_item";
         }
         echo "<div class='{$class}'>\n";
         echo "<div class='menu_title'>\n";
         echo "<a href='?t=Adm&a={$op}'>{$val}</a>";
         echo "</div>\n</div>\n";
     }
     echo "<div class='menu_item'>\n";
     echo "<div class='menu_title'>\n";
     echo "<a href='.'>" . Settings::_("adminmenu", "back") . "</a>";
     echo "</div>\n</div>\n";
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:23,代码来源:AdminMenu.php

示例6: toHTML

 /**
  * Display AdminMenu on website
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<ul class='menu_item {$this->class}'>\n";
     foreach ($this->options as $op => $val) {
         if (isset($_GET['a']) && $_GET['a'] == $op) {
             $class = "menu_item currentSelected";
         } else {
             $class = "menu_item";
         }
         echo "<li class='menu_title {$class}'>\n";
         echo "<a href='?t=Adm&a={$op}'>{$val}</a>";
         echo "\n</li>\n";
     }
     echo "<li class='menu_item'>\n";
     echo "<a href='.'>" . Settings::_("adminmenu", "back") . "</a>";
     echo "</li>\n";
     echo "</ul>\n";
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:23,代码来源:AdminMenu.php

示例7: toHTML

 /**
  * Display Login Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         $this->header();
         echo "<div class='center'>\n";
         echo "<h1>" . Settings::_("login", "logintitle") . "</h1></br>";
         echo "<form method='post' action='?t=Log' class='niceform'>\n";
         echo "<fieldset><span>" . Settings::_("login", "login") . "</span>";
         echo "<div><input type='text' name='login'></div></fieldset>\n";
         echo "<fieldset><span>" . Settings::_("login", "pass") . "</span>\n";
         echo "<div><input type='password' name='password'></div></fieldset>\n";
         echo "<input type='submit' value='" . Settings::_("login", "submit") . "' > " . Settings::_("login", "or") . " <a class='inline' href='?t=Reg'>" . Settings::_("login", "register") . "</a> " . Settings::_("login", "or") . " <a class='inline' href='.'>" . Settings::_("login", "back") . "</a>";
         echo "</form>\n";
         echo "</div>\n";
     }
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:26,代码来源:LoginPage.php

示例8: toHTML

 /**
  * Display Login Page on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     if (Settings::$forcehttps && !$_SERVER["HTTPS"]) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
         exit;
     } else {
         $this->header();
         echo "<div class='header'>";
         echo "<h1>" . Settings::_("login", "logintitle") . "</h1>";
         echo "</div>";
         echo "<div class='center'>\n";
         echo "<form method='post' action='?t=Login' class='pure-form pure-form-aligned niceform'>\n";
         echo "<fieldset>\r\n                 <div class='pure-control-group'>\r\n                 <label>" . Settings::_("login", "login") . "</label>\r\n                    <input type='text' name='login' value='' placeholder='" . Settings::_("login", "login") . "'>\r\n                </div>\r\n                 <div class='pure-control-group'>\r\n                 <label>" . Settings::_("login", "pass") . "</label>\r\n                    <input type='password' name='password' value='' placeholder='" . Settings::_("login", "pass") . "'>\r\n                    </div>\r\n                 <div class='pure-control-group'>\r\n                    <input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("login", "submit") . "'>\r\n                </div>\r\n            </fieldset>\r\n            </form>\n";
         if (!Settings::$noregister) {
             echo " <a class='pure-button button-success' href='?t=Reg'>" . Settings::_("login", "register") . "</a> " . Settings::_("login", "or");
         }
         echo " <a class='pure-button button-warning' href='.'>" . Settings::_("login", "back") . "</a>";
         echo "</fieldset></form>\n";
         echo "</div>\n";
     }
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:28,代码来源:LoginPage.php

示例9: toHTML

 public function toHTML()
 {
     $groupaccounts = array();
     echo "<div class='leftcolumn'>";
     echo "<h1>" . Settings::_("jsaccounts", "accounts") . "</h1>";
     echo "<fieldset>";
     $r = new RegisterPage(false, true);
     $r->toHTML();
     echo "</fieldset>";
     foreach ($this->accounts as $acc) {
         echo "<div class='accountitem'>\n\t\t\t\t\t\t<div class='delete'>\n\t\t\t\t\t\t\t<form action='?t=Adm&a=ADe' method='post'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='name' value='" . htmlentities($acc['login'], ENT_QUOTES, 'UTF-8') . "'>\n\t\t\t\t\t\t\t\t<input type='submit' value='x'>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</div>";
         echo "<div class='name'>" . $acc['login'] . "</div>";
         foreach ($acc['groups'] as $g) {
             $groupaccounts["{$g}"][] = $acc['login'];
             echo "<div class='inlinedel'><span class='rmgroup'>x</span><span class='groupname'>" . htmlentities($g, ENT_QUOTES, 'UTF-8') . "</span></div>";
         }
         echo "</div>";
     }
     echo "</div>";
     echo "<div class='rightcolumn'>";
     echo "<h1>" . Settings::_("jsaccounts", "groups") . "</h1>";
     echo "<div class='newgroup'>";
     echo "\n\t\t<form class='addgroup' method='post' action='?t=Adm&a=GC'>\n\t\t\t<fieldset>\n\t\t\t<span>" . Settings::_("jsaccounts", "groupname") . "</span>\n\t\t\t<div><input type='text' name='group' value='Group Name' /></div>\n\t\t\t</fieldset>\n\t\t\t<fieldset><input type='submit' value='" . Settings::_("jsaccounts", "addgroup") . "'></fieldset>\n\t\t\t</form>\n";
     echo "</div>";
     foreach ($this->groups as $g) {
         $gn = $g['name'];
         echo "<div class='groupitem'>\n\t\t\t\t\t\t<div class='delete'>\n\t\t\t\t\t\t\t<form action='?t=Adm&a=GDe' method='post'>\n\t\t\t\t\t\t\t\t<input type='hidden' name='name' value='{$gn}'>\n\t\t\t\t\t\t\t\t<input type='submit' value='x'>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</div>";
         echo "<div class='name'>" . $gn . "</div>";
         if (isset($groupaccounts["{$gn}"])) {
             foreach ($groupaccounts["{$gn}"] as $g) {
                 echo "<div class='inlinedel'><span class='rmacc'>x</span><span class='accname'>" . htmlentities($g, ENT_QUOTES, 'UTF-8') . "</span></div>";
             }
         }
         echo "</div>";
     }
     echo "</div>";
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:37,代码来源:JSAccounts.php

示例10: toHTML

 /**
  * Display Menubar on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div id='menuright-header'>";
     //echo "<a class='pure-button button-xsmall' href='http://www.photoshow-gallery.com'>PhotoShow - © Thibaud Rohmer </a>";
     echo "<div class='buttongroup-vertical'>";
     if (isset(CurrentUser::$account)) {
         // User logged in
         echo "<a class='pure-button button-small' href='#'><i class='fa fa-user fa-lg' style='float:left;'></i> " . htmlentities(CurrentUser::$account->login, ENT_QUOTES, 'UTF-8') . " <div style='float:right;'><i class='fa fa-caret-down fa-lg'></i></div></a>";
         if (CurrentUser::$admin) {
             echo "<a class='pure-button button-small button-hidden hidden' href='?t=Adm'><i class='fa fa-cogs fa-lg' style='float:left;'></i> " . Settings::_("menubar", "admin") . "</a>";
         }
         echo "<a class='pure-button button-small button-hidden hidden' href='?t=Acc'><i class='fa fa-wrench fa-lg' style='float:left;'></i> Edit </a>";
         echo "<a class='pure-button button-small button-hidden hidden' href='?t=Logout'><i class='fa fa-sign-out fa-lg' style='float:left;'></i> " . Settings::_("menubar", "logout") . "</a>\n";
     } else {
         echo "<a class='pure-button button-small' href='#'><i class='fa fa-user fa-lg' style='float:left;'></i> Not logged in ! <div style='float:right;'><i class='fa fa-caret-down fa-lg'></i></div></a>";
         // User not logged in
         echo "<a class='pure-button button-small  button-hidden hidden' href='?t=Login'><i class='fa fa-sign-in fa-lg' style='float:left;'></i> " . Settings::_("menubar", "login") . "</a>";
         if (!Settings::$noregister) {
             echo "<a class='pure-button button-small  button-hidden hidden' href='?t=Reg'><i class='fa fa-smile-o fa-lg' style='float:left;'></i> " . Settings::_("menubar", "register") . "</a>\n";
         }
     }
     echo "</div>";
     echo "</div>\n";
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:30,代码来源:MenuBar.php

示例11: toHTML

 public function toHTML()
 {
     $groupaccounts = array();
     echo "<div class='header'><h1>Groups</h1></div>";
     echo "<form class='pure-form pure-form-aligned' method='post' action='?t=Adm&a=GC'>\r\n\t\t\t<h2>" . Settings::_("jsaccounts", "addgroup") . "</h2>\r\n\t\t\t<div class='pure-control-group'>\r\n\t\t\t<label>Group name : </label><input type='text' name='group' placeholder='" . Settings::_("jsaccounts", "groupname") . "' />\r\n\t\t\t</div>\r\n\t\t\t<div class='pure-controls'>\r\n\t\t\t<input type='submit' class='pure-button button-success' value='" . Settings::_("jsaccounts", "addgroup") . "' />\r\n\t\t\t</div>\r\n\t\t\t</form>";
     echo "<form class='pure-form pure-form-aligned' method='post' action='?t=Adm&a=GEd'>";
     echo "<h2>" . Settings::_("jsaccounts", "groups") . "</h2>";
     foreach (Group::findAll() as $g) {
         $gn = $g['name'];
         $group = htmlentities($gn, ENT_QUOTES, 'UTF-8');
         echo "<div class='pure-g' style='border-bottom: 1px solid #ccc; padding-bottom: 15px; margin: 20px;'>";
         echo "<div class='pure-u-1-1 pure-u-md-1-3'>";
         echo "<h3><a href=\"?t=Adm&a=GDe&g=" . urlencode($gn) . "\" class='pure-button button-error button-small'><i class='fa fa-trash-o '></i></a> " . htmlentities($gn, ENT_QUOTES, 'UTF-8') . "</h3>";
         echo "</div>";
         echo "<div class='pure-u-1-1 pure-u-md-2-3'>";
         foreach (Account::findAll() as $acc) {
             $login = htmlentities($acc["login"], ENT_QUOTES, 'UTF-8');
             $checked = in_array($gn, $acc["groups"]) ? "checked" : "";
             echo "<div class='pure-controls'>";
             echo "<label><input type='checkbox' name=\"{$group}" . "[]\" value=\"{$login}\" {$checked} > {$login}</label>";
             echo "</div>";
         }
         echo "</div>";
         echo "</div>";
     }
     echo "<div class='pure-controls'><input type='submit' class='pure-button pure-button-primary'></div>";
     echo "</form>";
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:28,代码来源:Group.php

示例12: setUp

 public function setUp()
 {
     $this->api = new Api();
     $this->api->setup(Settings::_('freeagent'));
     $this->api->sandbox(true);
 }
开发者ID:agencycore,项目名称:freeagent,代码行数:6,代码来源:TestCase.php

示例13: toHTML

 /**
  * Display board on website
  *
  * @return void
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     // Output header
     $this->header->toHTML();
     if (sizeof($this->boardfolders) > 0) {
         echo "<h2>" . Settings::_("board", "albums") . "</h2>";
         foreach ($this->boardfolders as $boardfolder) {
             $boardfolder->toHTML();
         }
     }
     if (sizeof($this->boardlines) > 0) {
         echo "<h2>" . Settings::_("board", "images") . "</h2>";
     }
     // Output grid
     foreach ($this->boardlines as $boardline) {
         $boardline->toHTML();
     }
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:24,代码来源:Board.php

示例14: toHTML

 /**
  * Display the rights on website, and let
  * the admin edit them.
  * 
  * @author Thibaud Rohmer
  */
 public function toHTML()
 {
     echo "<div class='adminrights'>\n";
     echo "<h3>" . htmlentities($this->filename, ENT_QUOTES, 'UTF-8') . "</h3>\n";
     if ($this->public) {
         echo "<form action='?t=Pri&f={$this->webpath}' method='post'>\n";
         echo Settings::_("judge", "public");
         echo "<input type='submit' class='button blue' value='" . Settings::_("judge", "gopriv") . "' />";
         echo "</form>";
         echo "</div>";
         return;
     } else {
         echo "<form action='?t=Pub&f={$this->webpath}' method='post'>\n";
         echo Settings::_("judge", "priv");
         echo "<input type='submit' class='button blue' value='" . Settings::_("judge", "gopub") . "' />";
         echo "</form>";
     }
     echo "<form action='?t=Rig&f={$this->webpath}' method='post'>\n";
     echo "<h3>" . Settings::_("judge", "accounts") . "</h3>";
     foreach (Account::findAll() as $account) {
         if (in_array($account['login'], $this->users)) {
             $checked = "checked";
         } else {
             $checked = "";
         }
         echo "<label><input type='checkbox' value='" . $account['login'] . "' name='users[]' {$checked} >" . htmlentities($account['login'], ENT_QUOTES, 'UTF-8') . "</label>";
     }
     echo "<h3>" . Settings::_("judge", "groups") . "</h3>";
     foreach (Group::findAll() as $group) {
         if ($group['name'] == "root") {
             continue;
         }
         if (in_array($group['name'], $this->groups)) {
             $checked = "checked";
         } else {
             $checked = "";
         }
         echo "<label><input type='checkbox' value='" . $group['name'] . "' name='groups[]' {$checked} > " . htmlentities($group['name'], ENT_QUOTES, 'UTF-8') . " </label>";
     }
     echo "</br><input type='submit' class='button blue' value='" . Settings::_("judge", "set") . "'>\n";
     echo "</form>\n";
     echo "</div>\n";
 }
开发者ID:nemtos,项目名称:PhotoShow,代码行数:49,代码来源:Judge.php

示例15: toHTML

 /**
  * Display a form to edit account
  * 
  * 
  */
 public function toHTML()
 {
     $this->header();
     echo "<div class='header'>";
     echo "<h1>Account</h1>";
     echo "</div>";
     if (CurrentUser::$admin) {
         $r = new RegisterPage(false, true);
         $r->toHTML();
         echo "<form class='niceform pure-form' method='post' action='#'>";
         echo "<h2>" . Settings::_("account", "account") . "</h2>";
         echo "<label>" . Settings::_("account", "editing") . "</label><select name='login'>";
         foreach (Account::findall() as $a) {
             echo "<option value=\"" . addslashes($a['login']) . "\"";
             if ($this->login == $a['login']) {
                 echo " selected ";
             }
             echo ">" . $a['login'] . "</option>";
         }
         echo "</select>\n";
         echo "<input type='submit' class='pure-button pure-button-primary'>\n";
         echo "</form>";
     } else {
         echo Settings::_("account", "editing") . htmlentities($this->login, ENT_QUOTES, 'UTF-8');
     }
     echo "<form class='niceform pure-form pure-form-aligned' method='post' action='#'>\n";
     echo "<h2>" . Settings::_("account", "account") . "</h2>";
     /// Login
     echo "<div class='pure-control-group'>\r\n\t\t\t\t<label>" . Settings::_("account", "Login") . "</label>\r\n\t\t\t\t<input type='text' name='login' readonly='readonly' value=\"" . htmlentities($this->login, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t</div>";
     /// Name
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "name") . "</label>\r\n\t\t\t\t\t<input type='text' name='name' value=\"" . htmlentities($this->name, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Email
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "email") . "</label>\r\n\t\t\t\t\t<input type='text' name='email' value=\"" . htmlentities($this->email, ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Language
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("settings", "language") . "</label>\r\n\t\t\t\t\t<select>\r\n\t\t\t\t";
     foreach (Settings::$ava_loc as $l) {
         $p = substr(htmlentities($l, ENT_QUOTES, 'UTF-8'), 0, -4);
         echo "<option value=\"" . addslashes($p) . "\"";
         if ($p == $this->language) {
             echo " selected ";
         }
         echo ">" . $p . "</option>";
     }
     echo "</select>\n";
     /// Login
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "Key") . "</label>\r\n\t\t\t\t\t<input type='text' name='key' readonly='readonly' value=\"" . htmlentities($this->get_key(), ENT_QUOTES, 'UTF-8') . "\">\r\n\t\t\t\t</div>";
     /// Password
     echo "<div class='pure-control-group'>\r\n\t\t\t\t\t<label>" . Settings::_("account", "password") . "</label>\r\n\t\t\t\t\t<input type='password' name='password' value=''>\r\n\t\t\t\t</div>";
     if (CurrentUser::$admin) {
         echo "<input type='hidden' value='plip' name='edit'>";
     } else {
         /// Old Pass
         echo "<div class='pure-control-group'>\r\n\t\t\t\t\t\t<label>" . Settings::_("account", "oldpass") . "</label>\r\n\t\t\t\t\t\t<input type='password' name='old_password' value=''>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</fieldset>\n";
     }
     echo "<div class='pure-controls'>\r\n\t\t\t<input type='submit' class='pure-button pure-button-primary' value='" . Settings::_("account", "submit") . "'/>\r\n\t\t\t</div>";
     echo "</form>\n";
     echo "</div>\n";
 }
开发者ID:inscriptionweb,项目名称:PhotoShow,代码行数:63,代码来源:Account.php


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