Exemple #1
0
 public function dispatch()
 {
     awpcp_enqueue_main_script();
     $output = apply_filters('awpcp-show-listing-content-replacement', null);
     if (is_null($output)) {
         return showad();
     } else {
         return $output;
     }
 }
Exemple #2
0
                                    </td>
                                </tr>

                            <?php 
}
?>


                        </tbody>
                    </table>
                </div>

            </div>
             <?php 
echo showad(3, $this->ads);
?>
 
        </div>
    </div>




    <!-- /container -->
    <?php 
echo $this->render("themes/site/" . theme_name . "/html/elements/footer.php");
?>

    <!-- Modal 1-->
    <div class="modal fade" id="loginmodal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> 
Exemple #3
0
<div class="col-md-4">
<?php 
echo showad(1, $this->ads);
?>
 
    <br/>
  <?php 
if ($this->sidebar_topics) {
    ?>
 
<?php 
    if ($this->params[0] == alias_name($this->database, "topic") && $this->sidebar_topics) {
        ?>
<div class="panel panel-info">
        <div class="panel-heading">
          <h3 class="panel-title"><?php 
        echo POEMS_BY_TOPIC;
        ?>
</h3>
        </div>
        <ul class="list-group">
          <div class="list-group">
              <?php 
        foreach ($this->sidebar_topics as $topics) {
            ?>
              <a class="list-group-item" href="<?php 
            echo get_url($this->database, "topic", $topics['topic_id'], $topics['topic_slug']);
            ?>
"><i class="fa fa-chevron-circle-right pull-right"></i> <?php 
            echo $topics['topic_name'];
?>
    <input type="hidden" name="step" value="preview-ad" />

    <span><?php 
echo esc_html(__('This is a preview of your Ad. Use the buttons below to go back and edit your Ad, manage the uploaded images or finish the posting process.', 'AWPCP'));
?>
</span>
    <br>
    <input class="button" type="submit" name="edit-details" value="<?php 
echo esc_attr(__("Edit Details", "AWPCP"));
?>
" />
    <?php 
if ($ui['manage-images']) {
    ?>
    <input class="button" type="submit" name="manage-images" value="<?php 
    echo esc_attr(__("Manage Images", "AWPCP"));
    ?>
" />
    <?php 
}
?>
    <input class="button button-primary" type="submit" name="finish" value="<?php 
echo esc_attr(__("Finish", "AWPCP"));
?>
" />
</form>

<?php 
echo showad($ad->ad_id, true, true, false, false);
 public function view_ad($ad)
 {
     $category_name = get_adcatname($ad->ad_category_id);
     $category_url = $this->url(array('showadsfromcat_id' => $ad->ad_category_id));
     $content = showad($ad->ad_id, $omitmenu = 1);
     $links = $this->links($this->actions($ad, array('edit', 'enable', 'disable', 'spam', 'make-featured', 'remove-featured')));
     $params = array('ad' => $ad, 'category' => array('name' => $category_name, 'url' => $category_url), 'links' => $links, 'content' => $content);
     $template = AWPCP_DIR . '/admin/templates/admin-panel-listings-view.tpl.php';
     echo $this->render($template, $params);
 }
Exemple #6
0
        <tr><td><br>Описание объявления<br><br><br>Цена
            </td>
            <td ><br><textarea cols="50" maxlength="3000"  name="description"></textarea>

                <br><br> <input size="10" type="text" maxlength="9" class="form-input-text-short" value="<?php 
returnID('price');
?>
 " name="price" id="fld_price"> .руб
            </td>
        </tr>
<tr><td colspan="2" align="center"><br><div class="form-row-indented form-row-submit b-vas-submit" id="js_additem_form_submit">
        <div class="vas-submit-button pull-left"> <span class="vas-submit-border"></span> <span class="vas-submit-triangle"></span> <input type="submit" value="Отправить" id="form_submit" name="main_form_submit" class="vas-submit-input"> </div>
    </div></td></tr>

    </table>





    
</form>
<?php 
showad();
if (empty($_SESSION)) {
    echo "<br><h2>Объявления отсутствуют</h2>";
}
var_dump($_SESSION);
//phpinfo(32);
//print_r($_GET);
print_r($_POST);