[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/clock_menu/ -> config.php (source)

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     ©Steve Dunstan 2001-2002
   7  |     http://e107.org
   8  |     jalist@e107.org
   9  |
  10  |     Released under the terms and conditions of the
  11  |     GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_plugins/clock_menu/config.php,v $
  14  |     $Revision: 1.7 $
  15  |     $Date: 2005/06/01 06:40:09 $
  16  |     $Author: e107coders $
  17  +----------------------------------------------------------------------------+
  18  */
  19  $eplug_admin = TRUE;
  20  require_once ("../../class2.php");
  21  if (!getperms("1")) {
  22      header("location:".e_BASE."index.php");
  23       exit ;
  24  }
  25  require_once(e_ADMIN."auth.php");
  26  @include_once(e_PLUGIN."clock_menu/languages/admin/".e_LANGUAGE.".php");
  27  @include_once(e_PLUGIN."clock_menu/languages/admin/English.php");
  28  require_once(e_HANDLER."form_handler.php");
  29  $rs = new form;
  30      
  31  if (isset($_POST['update_menu'])) {
  32      while (list($key, $value) = each($_POST)) {
  33          if ($key != "update_menu") {
  34              $menu_pref[$key] = $value;
  35          }
  36      }
  37      if ($_POST['clock_format'] != 1) {
  38          $menu_pref['clock_format'] = 0;
  39      }
  40      $tmp = addslashes(serialize($menu_pref));
  41      $sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' ");
  42      $ns->tablerender("", "<div style=\"text-align:center\"><b>".CLOCK_AD_L1."</b></div>");
  43  }
  44      
  45  $text = "<div style='text-align:center'>
  46      <form method=\"post\" action=\"".e_SELF."?".e_QUERY."\" name=\"menu_conf_form\">
  47      <table style=\"width:85%\" class=\"fborder\">";
  48      
  49  //  Title
  50  $text .= "<tr>
  51      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L2.": </td>
  52      <td style=\"width:60%\" class='forumheader3'>
  53      <input class=\"tbox\" type=\"text\" name=\"clock_caption\" size=\"20\" value=\"".$menu_pref['clock_caption']."\" maxlength=\"100\" />
  54      </td>
  55      </tr>";
  56      
  57  // Format Time
  58  $text .= "<tr>
  59      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L5.": </td>
  60      <td style=\"width:60%\" class='forumheader3'>".($menu_pref['clock_format'] == 1 ? $rs->form_checkbox("clock_format", 1, 1) : $rs->form_checkbox("clock_format", 1, 0) )."
  61      <br /><b class='smalltext'>".CLOCK_AD_L6."</b></td>
  62      </tr>";
  63      
  64  //  Date Prefix
  65  $text .= "<tr>
  66      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L7.": </td>
  67      <td style=\"width:60%\" class='forumheader3'>
  68      <input class=\"tbox\" type=\"text\" name=\"clock_dateprefix\" size=\"10\" value=\"".$menu_pref['clock_dateprefix']."\" maxlength=\"50\" />
  69      <br /><b class='smalltext'>".CLOCK_AD_L8."</b></td>
  70      </tr>";
  71      
  72  //  Date Suffix
  73  $text .= "<tr>
  74      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L9.": </td>
  75      <td style=\"width:60%\" class='forumheader3'>
  76      1<input class=\"tbox\" type=\"text\" name=\"clock_datesuffix1\" size=\"10\" value=\"".$menu_pref['clock_datesuffix1']."\" maxlength=\"50\" />
  77      <br /><b class='smalltext'>".CLOCK_AD_L13."</b></td>
  78      </tr>";
  79      
  80  $text .= "<tr>
  81      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L10.": </td>
  82      <td style=\"width:60%\" class='forumheader3'>
  83      2<input class=\"tbox\" type=\"text\" name=\"clock_datesuffix2\" size=\"10\" value=\"".$menu_pref['clock_datesuffix2']."\" maxlength=\"50\" />
  84      <br /><b class='smalltext'>".CLOCK_AD_L13."</b></td>
  85      </tr>";
  86      
  87  $text .= "<tr>
  88      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L11.": </td>
  89      <td style=\"width:60%\" class='forumheader3'>
  90      3<input class=\"tbox\" type=\"text\" name=\"clock_datesuffix3\" size=\"10\" value=\"".$menu_pref['clock_datesuffix3']."\" maxlength=\"50\" />
  91      <br /><b class='smalltext'>".CLOCK_AD_L13."</b></td>
  92      </tr>";
  93      
  94  $text .= "<tr>
  95      <td style=\"width:40%\" class='forumheader3'>".CLOCK_AD_L12.": </td>
  96      <td style=\"width:60%\" class='forumheader3'>
  97      4<input class=\"tbox\" type=\"text\" name=\"clock_datesuffix4\" size=\"10\" value=\"".$menu_pref['clock_datesuffix4']."\" maxlength=\"50\" />
  98      <br /><b class='smalltext'>".CLOCK_AD_L13."</b></td>
  99      </tr>";
 100      
 101  $text .= "<tr style=\"vertical-align:top\">
 102      <td colspan=\"2\"  style=\"text-align:center\" class='forumheader'>
 103      <input class=\"button\" type=\"submit\" name=\"update_menu\" value=\"".CLOCK_AD_L3."\" />
 104      </td>
 105      </tr>
 106      </table>
 107      </form>
 108      </div>";
 109  $ns->tablerender(CLOCK_AD_L4, $text);
 110  require_once(e_ADMIN."footer.php");
 111  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7