Example #1
0
 public function action_index()
 {
     $this->set_title("Module Location ");
     $mm = new MarqueManager(DB::get_instance());
     $liste = $mm->listing();
     $option[] = '';
     foreach ($liste as $m) {
         $option[] = $m->getNomMarque();
     }
     $f = new Form("?module=loc&action=valide", "f_loc");
     $f->add_select("marque", "marque", "Marque", $option);
     $this->tpl->assign("f_loc", $f);
 }
Example #2
0
 public function action_index()
 {
     if ($this->session->ouverte()) {
         $this->set_title("Module Nos voitures");
         if ($this->req->name) {
             $db = DB::get_instance();
             $modm = new ModeleManager($db);
             $imgm = new ImageManager($db);
             $mod = $modm->getByName($this->req->name);
             $cm = new CommentaireManager($db);
             if ($mod) {
                 $idmodele = $mod->getIdModele();
                 $listeCom = $cm->listing($idmodele);
                 $this->tpl->assign("com", $listeCom);
                 $listeImg = $imgm->listing($idmodele);
                 $this->tpl->assign("photo", $listeImg);
             } else {
                 Site::redirect('loc', 'index');
             }
         } else {
             Site::redirect('index');
         }
         $fcom = new Form("?module=car&action=validcom&name=" . $this->req->name, "f_com");
         $i = 0;
         $notes[] = '';
         while ($i < 6) {
             $notes[] = $i;
             $i++;
         }
         $fcom->add_select("note", "note", "Note", $notes);
         $fcom->add_textarea("com", "com", "");
         $fcom->add_submit("", "", "")->set_value("Envoyez");
         $this->tpl->assign("f_com", $fcom);
     } else {
         Site::redirect("login");
     }
 }
Example #3
0
if (!isset($res)) {
    $Base = new Base();
    $Base->type(SEARCH);
    $Base->title("Search");
    $Base->header();
}
$Form = new Form();
$Form->ajax(false);
if (isset($_SESSION['search'])) {
    $Form->values($_SESSION['search']);
}
$Form->header("/search/", "post", FORM_SALT);
$Form->fieldset_open("Search Information");
$Form->add_text("search", "Search For:", 300);
$Form->add_select("_type", "Within:", "Choose", array("thread" => "Threads", "thread_post" => "Thread Posts", "message" => "Messages", "message_post" => "Message Posts"));
$Form->fieldset_close();
$Form->fieldset_open("Optional Fields");
print "<li>will return in a bit</li>\n";
/*
$Form->add_text("member","By Member:");
$Form->labels(false);
print "<li>\n";
print "  <label>Date Range:</label>\n";
$Form->add_date("start",false);
$Form->add_date("end",false);
print "</li>\n";
$Form->labels(true);
$Form->add_select("quickdate","Quick Ranges:","Choose",array("thisweek"=>"This Week","thismonth"=>"This Month","lastweek"=>"Last Week","lastmonth"=>"Last Month"),"onchange=\"quickrange($(this).val())\">");
*/
$Form->fieldset_close();
Example #4
0
  }
  else
  jQuery('body').append("<style type=text/css>.list:hover { background-color: #"+jQuery('#hover').val()+"; }</style>");
}
</script>
<div style="float:left;width:50%">
<?php 
$Form = new Form();
if ($theme['hover'] == "transparent") {
    $theme['hover'] = "none";
}
$Form->values(array_merge($theme, get('theme') ? array("theme" => get('theme')) : array()));
$Form->header(url(), "post", FORM_SALT);
$Form->fieldset_open("Theme Options");
$Form->add_text("font", "Font Family:", 250);
$Form->add_select("fontsize", "Font Size:", "Select Size", $fontsizes);
$Form->add_text("body", "Background #:", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"body\" checked=\"true\"/>");
$Form->add_text("even", "Even #:", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"even\"/>");
$Form->add_text("odd", "Odd #:", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"odd\"/>");
$Form->add_text("me", "My Posts #:", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"me\"/>");
$Form->add_text("hover", "Hover Bar #:<br/><span class=\"small\">(or 'none')</span>", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"hover\"/>");
$Form->add_text("readbar", "Read Bars #:", 50, 6, "/> <input type=\"radio\" id=\"type\" name=\"type\" value=\"readbar\"/>");
$Form->fieldset_close();
$Form->add_submit("Save");
$Form->add_button("preview", "Preview", "preview_theme()");
$Form->labels(false);
$Form->fieldset_open("Preset Themes");
$DB->query("SELECT name as id,name FROM theme");
$Form->add_select("theme", "Themes:", "Select Theme", $DB->load_all_key());
$Form->add_button("preview", "Preview", "if(jQuery('#theme')[0].selectedIndex) location.href='/member/editcolors/&theme='+jQuery('#theme')[0][jQuery('#theme')[0].selectedIndex].value;");
$Form->fieldset_close();