예제 #1
0
 function View($info)
 {
     $htmlView = new htmlPage();
     $ret = $this->loginView($info["loginResponse"], $info["accInfo"]);
     $ret .= $this->accountView($info["charResponse"], $info["characterList"], $info["accInfo"], $info["registerResponse"], $info["registrationSuccess"], $info["posts"], $info["postResponse"]);
     $ret .= "</main>";
     $htmlView->showHtml($ret);
 }
예제 #2
0
 /**
  * Constructeur.
  *
  * @return void
  */
 public function __construct($okt)
 {
     parent::__construct($okt, 'admin');
     $this->action = !empty($_REQUEST['action']) ? $_REQUEST['action'] : null;
     $this->application = !empty($_REQUEST['application']) ? $_REQUEST['application'] : null;
     $this->do = !empty($_REQUEST['do']) ? $_REQUEST['do'] : null;
     $this->breadcrumb = new breadcrumb();
     $this->flashMessages = new oktFlashMessages();
     $this->messages = new adminMessagesSuccess();
     $this->warnings = new adminMessagesWarnings();
     $this->errors = new adminMessagesErrors();
     $this->getCommonReady();
 }
예제 #3
0
 /**
  * Retourne le HTML de l'en-tête pour ajouter un fichier
  * CSS en comentaire conditionnel
  *
  * @param string $src 		L'URL du fichier javascript
  * @param string $condition La condition
  * @param string $media 	L'attribut media (screen)
  * @param string $rel 		L'attribut rel (stylesheet)
  * @param string $format	Le format de la chaine ('<link type="text/css" href="%s" rel="%s" media="%s" />')
  * @return string
  */
 public static function formatCCFile($src, $condition, $media = 'screen', $rel = 'stylesheet', $format = "<link type=\"text/css\" href=\"%s\" rel=\"%s\" media=\"%s\" />\n")
 {
     return htmlPage::formatCC(self::formatHtmlCssFile($src, $media, $rel, $format), $condition);
 }
예제 #4
0
 * contact.php gives contact details
 *
 * It calls our class, htmlPage, sets the title for our page, sets the page content,
 * & streams the completed boilerplate code.
 * 
 * @author David Argles <*****@*****.**>
 * @version 23-07-2015, 21:15h
 * @copyright 2015 Haven Consulting
 */
/* The following line makes the server display error messages.
   Uncomment it during development. */
//ini_set("display_errors", 1);
/* The next two lines bring in the htmlPage class and create a new instance.
   Don't change these lines! */
require "library/htmlPage.class.php";
$page = new htmlPage();
/* The next line streams the initial html.  Don't change this. */
$page->HTMLstreamTop();
?>

      <h3>Contact</h3>
      <p>If you want to discuss membership or anything to do with the activity of the Castle Sailing Club, please contact <?php 
echo $page->contact;
?>
, preferably by email, on:</p>
      <p class="centre"><?php 
echo "<a href=\"mailto:{$page->email}\">{$page->email}";
?>
</a></p>
      <p>or by 'phone on:</p>
      <p class="centre"><?php 
예제 #5
0
 /**
  * Constructeur.
  *
  * @return void
  */
 public function __construct($okt)
 {
     parent::__construct($okt, 'public');
 }
예제 #6
0
 /**
  * Retourne le HTML de l'en-tête pour ajouter un fichier
  * javascript en comentaire conditionnel
  *
  * @param string $src 		L'URL du fichier javascript
  * @param string $condition La condition
  * @param string $format	Le format de la chaine
  * @return string
  */
 public static function formatCCFile($src, $condition, $format = "<script type=\"text/javascript\" src=\"%s\"></script>\n")
 {
     return htmlPage::formatCC(self::formatFile($src, $format), $condition);
 }
예제 #7
0
파일: display.php 프로젝트: jewelhuq/okatea
 */
/**
 * La page de configuration de l'affichage
 *
 * @addtogroup Okatea
 *
 */
# Accès direct interdit
if (!defined('ON_CONFIGURATION_MODULE')) {
    die;
}
# locales
l10n::set(OKT_LOCALES_PATH . '/' . $okt->user->language . '/admin.display');
/* Initialisations
----------------------------------------------------------*/
$aUiThemes = htmlPage::getUiThemes();
$aThemes = array_flip(oktThemes::getThemes());
$aNotAllowedAdminThemes = array('dark-hive', 'dot-luv', 'eggplant', 'le-frog', 'mint-choc', 'swanky-purse', 'trontastic', 'ui-darkness', 'vader');
$aAllowedAdminThemes = array_diff($aUiThemes, $aNotAllowedAdminThemes);
$aAllowedAdminThemes = array_combine($aAllowedAdminThemes, $aAllowedAdminThemes);
foreach ($aAllowedAdminThemes as $theme) {
    if ($theme == $okt->config->admin_theme) {
        $aAllowedAdminThemes[$theme] = $theme . __('c_a_config_display_current_theme');
    }
}
$aAllowedAdminThemes = array_flip($aAllowedAdminThemes);
/* Traitements
----------------------------------------------------------*/
if (!empty($_POST['form_sent'])) {
    # traitement d'un éventuel theme uploadé
    if (isset($_FILES['p_upload_theme']) && !empty($_FILES['p_upload_theme']['tmp_name'])) {