$row['id'] = strlen($row['id']) == 1 ? "0" . $row['id'] : $row['id']; $row['seotitle'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title']; $row['startplacename'] = getStartCityName($row['startcity']); foreach ($row as $k => $v) { $pv->Fields[$k] = $v; } //print_r($this->Fields); } $pv->Fields['title'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title']; $linecontent = getLineContentPrint($row, 1); //线路介绍分类 $typename = GetTypeName($typeid); //获取栏目名称. $pv->Fields['typename'] = $typename; $pv->SetTemplet(SLINETEMPLATE . "/" . $cfg_df_style . "/" . "lines/" . "print.htm"); $pv->Display(); //打印页面函数重写 //线路内容模块 function getLineContentPrint($row, $istemplets) { global $dsql; $linecontent = array(); $sql = "select columnname,chinesename from #@__line_content where webid=0 and isopen=1 order by displayorder asc"; $dsql->Execute('me', $sql); while ($arr = $dsql->GetArray()) { if ($arr['columnname'] == "payment") { if ($row[$arr['columnname']] == "") { $row[$arr['columnname']] = $GLOBALS['cfg_payment']; } } if ($arr['columnname'] == "linespot") {
<option <?php View::Display("search_sort_start_desc", "selected"); ?> value="start_desc">Plus récent</option> <option <?php View::Display("search_sort_start_asc", "selected"); ?> value="start_asc">Moins récent</option> <option <?php View::Display("search_sort_end_asc", "selected"); ?> value="end_asc">Fin proche</option> <option <?php View::Display("search_sort_end_desc", "selected"); ?> value="end_desc">Fin lointaine</option> </select> <input type="submit" value="search"/> </div> </form> <div class="row"> <?php for ($i = 0; $i < count($objects); $i++) { $object = $objects[$i];
View::Display("admin_permission", function () { global $collection, $purge_stack; ?> <div class="wrap"> <main> <h1>Base de donnée //</h1> <div class="largebox bothradius"> <div id="signform" class="sideform"> <table class="collection"> <tr> <td> <h3>La cloturation des ventes supprime de la base les enchères terminées.</h3> </td> <td class="buttoncell"> <form method="post" action="admin.php"> <input type="hidden" name="action" value="purge" /> <input class="redbutton" type="submit" value="Clôturer" /> </form> </td> </tr> </table> <?php if ($purge_stack != NULL && $purge_stack->size > 0) { ?> <hr /> <table class="collection"> <tr> <td> <ul> <?php foreach ($purge_stack->results as $o) { ?> <li><a href="object.php?id=<?php echo $o["object"]->object_id; ?> "><?php echo $o["object"]->object_name; ?> </a></li> <?php } ?> </ul> </td> </tr> </table> <?php } ?> </div> </div> <h1>Gestion des membres //</h1> <div class="largebox bothradius"> <div id="signform" class="sideform"> <table class="collection"> <?php foreach ($collection as $u) { ?> <tr> <td><?php echo $u["user"]->user_firstname . " " . $u["user"]->user_lastname; ?> </td> <td><?php echo $u["user"]->user_email; ?> </td> <td> <form method="post" action="admin.php"> <input type="hidden" name="action" value="delete" /> <input type="hidden" name="user_id" value="<?php echo $u["user"]->user_id; ?> " /> <input class="redbutton" type="submit" value="Supprimer" /> </form> </td> </tr> <tr> <td colspan="3"> <ul> <?php foreach ($u["objects"] as $o) { ?> <li><a href="object.php?id=<?php echo $o->object_id; ?> "><?php echo $o->object_name; ?> </a></li> <?php } ?> </ul> <hr /> </td> </tr> <?php } ?> </table> </div> </div> <div class="marger"></div> </main> </div> <?php }, "Vous n'avez pas le droit d'accéder à cette page");
>Téléphone</span> <input type="text" placeholder="" name="telephone" value="" /> </div> <div> <span <?php View::Display("password_error", 'class="error"'); View::Display("repassword_error", ' class="error"'); ?> >Mot de passe</span> <input type="password" placeholder="" name="password" value="" /> </div> <div> <span <?php View::Display("repassword_error", 'class="error"'); ?> >Mot de passe bis</span> <input type="password" placeholder="" name="repassword" value="" /> </div> <div> <span> </span> <input class="redbutton" type="submit" value="S'incrire" /></div> </form> </div> </div> </div>
View::Display("ventes_en_cours", function () { global $objects; ?> <h1>Vos ventes en cours //</h1> <?php for ($i = 0; $i < $objects->size; $i++) { $object = $objects->results[$i]["object"]; ?> <a href="object.php?id=<?php echo $object->object_id; ?> "> <div class="block"> <div class="imgproduct" style="background-image: url('<?php echo $object->object_picture_url; ?> ');"></div> <div class="textproduct"> <div class="titleproduct"> <?php echo $object->object_name; ?> </div> <div class="countdown timer" name="<?php echo $object->object_end_date * 1000; ?> "></div> <div class="priceproduct"> <?php echo $object->object_minimal_price; ?> € </div> </div> </div> </a> <?php } ?> <?php });
function process() { $result = $this->preAction(); if ($result !== FALSE) { $action = $this->_data['action']; if ($action && method_exists($this, $action)) { call_user_func_array(array($this, $action), $this->_data['params']); } } $this->postAction(); $this->preRender(); switch ($this->_data['type']) { case NULL: break; case 'view': $views = array(); if ($this->_data['layouts']['application']) { $path = MVC::$Path . 'view' . DIRECTORY_SEPARATOR . 'html.php'; if (file_exists($path)) { $views[] = $path; } } if ($this->_data['layouts']['controller']) { $path = MVC::$Path . 'view' . DIRECTORY_SEPARATOR . $this->_data['controller'] . '.html.php'; if (file_exists($path)) { $views[] = $path; } } $views[] = MVC::$Path . 'view' . DIRECTORY_SEPARATOR . $this->_data['controller'] . DIRECTORY_SEPARATOR . $this->_data['view'] . '.html.php'; foreach ($views as $view) { if (!file_exists($view)) { throw new MVCException('View not found : $path' . DIRECTORY_SEPARATOR . str_replace(MVC::$Path, '', $view), MVC::$Code['VIEW_NOT_FOUND']); } } $data = $this->data; foreach ($this->_data as $key => $val) { $data['_' . $key] = $val; } View::Display($views, $data); break; case 'text': echo $this->data; break; case 'json': header('Content-Type: application/json'); echo json_encode($this->data); break; case 'xml': break; case 'file': break; } $this->postRender(); }
<div class="column"> <div class="specproduct leftradius" id="loginfobox"> </div> </div> <div class="column"> <div class="specwebinfo rightradius"> <div id="logform" class="sideform"> <h2>Connexion</h2> <form action="login.php" method="post"> <?php View::Display("error", '<div class="error"> <span></span> Erreur de connexion</div>'); ?> <div> <span>E-Mail</span> <input type="text" autofocus placeholder="" name="email" value="" /></div> <div> <span>Mot de passe</span> <input type="password" placeholder="" name="password" value="" /></div> <div> <span> </span> <input class="redbutton" type="submit" value="Connexion" /></div> </form> <hr /> <h2> Pas encore inscrit ?</h2> <form action="register.php" method="get"> <div> <span>Écouter la Force</span> <input class="redbutton" type="submit" value="S'incrire" /></div>
Votre prix<br /> <input type="text" autofocus name="prix" value="<?php echo $object_price + 1; ?> "/>€ <br><input class="redbutton" id="button" type="submit" value="Enchérir"/> </form> </div> <?php }); }); }); }, function () { //si fini View::Display("i_am_the_seller", "Votre vente est terminée", function () { View::Display("i_am_the_best", "Vous avez remporté cette enchère", "Cette vente est terminée"); }); }); ?> </td> </tr> </table> </div> </div> </div> <div class="clear"></div>