当前位置: 首页>>代码示例>>PHP>>正文


PHP WDWLibrary::html_page_nav方法代码示例

本文整理汇总了PHP中WDWLibrary::html_page_nav方法的典型用法代码示例。如果您正苦于以下问题:PHP WDWLibrary::html_page_nav方法的具体用法?PHP WDWLibrary::html_page_nav怎么用?PHP WDWLibrary::html_page_nav使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WDWLibrary的用法示例。


在下文中一共展示了WDWLibrary::html_page_nav方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

    public function display()
    {
        global $WD_BWG_UPLOAD_DIR;
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $search_select_value = isset($_POST['search_select_value']) ? (int) $_POST['search_select_value'] : 0;
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'order';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $ids_string = '';
        $per_page = $this->model->per_page();
        $pager = 0;
        $gallery_button_array = array('publish_all' => __('Publish', 'bwg_back'), 'unpublish_all' => __('Unpublish', 'bwg_back'), 'delete_all' => __('Delete', 'bwg_back'));
        ?>
    <div style="clear: both; float: left; width: 99%;">
      <div style="float:left; font-size: 14px; font-weight: bold;">
        <?php 
        _e("This section allows you to create, edit and delete galleries.", 'bwg_back');
        ?>
        <a style="color: blue; text-decoration: none;" target="_blank" href="https://web-dorado.com/wordpress-gallery/creating-editing-galleries.html"><?php 
        _e("Read More in User Manual", 'bwg_back');
        ?>
</a>
      </div>
      <div style="float: right; text-align: right;">
        <a style="text-decoration: none;" target="_blank" href="https://web-dorado.com/files/fromPhotoGallery.php">
          <img width="215" border="0" alt="web-dorado.com" src="<?php 
        echo WD_BWG_URL . '/images/logo.png';
        ?>
" />
        </a>
      </div>
    </div>
    <form class="wrap bwg_form" id="galleries_form" method="post" action="admin.php?page=galleries_bwg" style="float: left; width: 99%;">
      <?php 
        wp_nonce_field('galleries_bwg', 'bwg_nonce');
        ?>
      <span class="gallery-icon"></span>
      <h2>
        <?php 
        _e("Galleries", 'bwg_back');
        ?>
        <a href="" id="galleries_id" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
                                               spider_form_submit(event, 'galleries_form')"><?php 
        _e("Add new", 'bwg_back');
        ?>
</a>
      </h2>
      <div id="draganddrop" class="wd_updated" style="display:none;"><strong><p><?php 
        _e("Changes made in this table should be saved.", 'bwg_back');
        ?>
</p></strong></div>
      <?php 
        WDWLibrary::search(__('Name', 'bwg_back'), $search_value, 'galleries_form', '');
        ?>
      <div class="tablenav top buttons_div" >
        <span class="wd-btn wd-btn-primary-gray bwg_check_all  non_selectable" onclick="spider_check_all_items()">
          <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
          <span style="vertical-align: middle;"><?php 
        echo __('Select All', 'bwg_back');
        ?>
</span>
        </span>
        <select class='select_icon bulk_action'>
          <option value=""><?php 
        _e('Bulk Actions', 'bwg_back');
        ?>
</option>
        <?php 
        foreach ($gallery_button_array as $key => $value) {
            ?>
          <option value="<?php 
            echo $key;
            ?>
">
            <?php 
            echo $value;
            ?>
          </option>
        <?php 
        }
        ?>
        </select>
        <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php 
        _e("Apply", "bwg_back");
        ?>
" onclick="if (!bwg_bulk_actions('.bulk_action', 'gallery_page')) {return false;}" value="<?php 
        _e("Apply", "bwg_back");
        ?>
" />
        <?php 
        WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page);
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
        <th class="sortable check-column table_small_col manage-column <?php 
        if ($order_by == 'order') {
            echo $order_class;
//.........这里部分代码省略.........
开发者ID:benshez,项目名称:DreamWeddingCeremonies,代码行数:101,代码来源:BWGViewGalleries_bwg.php

示例2: display

    public function display()
    {
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html($_POST['search_value']) : '';
        $search_select_value = isset($_POST['search_select_value']) ? (int) $_POST['search_select_value'] : 0;
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html($_POST['asc_or_desc']) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html($_POST['order_by']) : 'id';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $ids_string = '';
        $per_page = $this->model->per_page();
        ?>
    <div style="clear: both; float: left; width: 99%;">
      <div style="float:left; font-size: 14px; font-weight: bold;">
        This section allows you to create, edit and delete themes.
        <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-gallery-guide-step-6/6-1.html">Read More in User Manual</a>
        <?php 
        if (get_option("wd_bwg_theme_version")) {
            ?>
          <br />
          This feature is disabled for the non-commercial version.
          <?php 
        }
        ?>
      </div>
      <div style="float: right; text-align: right;">
        <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/products/wordpress-photo-gallery-plugin.html">
          <img width="215" border="0" alt="web-dorado.com" src="<?php 
        echo WD_BWG_URL . '/images/logo.png';
        ?>
" />
        </a>
      </div>
    </div>
    <?php 
        if (get_option("wd_bwg_theme_version")) {
            ?>
      <div style="clear: both; float: left; width: 97%;">
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_thumbnails.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_masonry.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_slideshow.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_image_browser.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_compact_album.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_extended_album.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_blog_style.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_lightbox.png';
            ?>
" />
        <img style="max-width: 100%;" src="<?php 
            echo WD_BWG_URL . '/images/theme_page_navigation.png';
            ?>
" />
      </div>
      <?php 
            die;
        }
        ?>
    <form class="wrap" id="themes_form" method="post" action="admin.php?page=themes_bwg" style="float: left; width: 99%;">
      <?php 
        wp_nonce_field('themes_bwg', 'bwg_nonce');
        ?>
      <span class="theme_icon"></span>
      <h2>
        Themes
        <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
                                               spider_form_submit(event, 'themes_form')">Add new</a>
      </h2>
      <div class="buttons_div">
        <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
                                                       spider_set_input_value('task', 'delete_all');
                                                     } else {
                                                       return false;
                                                     }" value="Delete"/>
      </div>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search('Title', $search_value, 'themes_form');
        WDWLibrary::html_page_nav($page_nav['total'], $page_nav['limit'], 'themes_form', $per_page);
//.........这里部分代码省略.........
开发者ID:nirav90,项目名称:gharena,代码行数:101,代码来源:BWGViewThemes_bwg.php

示例3: display

    public function display()
    {
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'A.term_id';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $ids_string = '';
        $per_page = $this->model->per_page();
        $pager = 0;
        $query_url = wp_nonce_url(admin_url('admin-ajax.php'), '', 'bwg_nonce');
        $query_url = add_query_arg(array('action' => ''), $query_url);
        ?>
    <script>
      var ajax_url = "<?php 
        echo $query_url;
        ?>
"
    </script>
    <div style="clear: both; float: left; width: 99%;">
      <div style="float:left; font-size: 14px; font-weight: bold;">
        <?php 
        _e("This section allows you to create, edit and delete tags.", 'bwg_back');
        ?>
        <a style="color: blue; text-decoration: none;" target="_blank" href="https://web-dorado.com/wordpress-gallery-guide-step-3.html"><?php 
        _e("Read More in User Manual", 'bwg_back');
        ?>
</a>
      </div>
      <div style="float: right; text-align: right;">
        <a style="text-decoration: none;" target="_blank" href="https://web-dorado.com/files/fromPhotoGallery.php">
          <img width="215" border="0" alt="web-dorado.com" src="<?php 
        echo WD_BWG_URL . '/images/logo.png';
        ?>
" />
        </a>
      </div>
    </div>
    <div id="wordpress_message_1" style="width:99%;display:none"><div id="wordpress_message_2" class="updated"><p><strong><?php 
        _e("Item Succesfully Saved.", 'bwg_back');
        ?>
</strong></p></div></div>
    <form class="wrap" id="tags_form" method="post" action="admin.php?page=tags_bwg" style="float:left; width: 99%;">
      <?php 
        wp_nonce_field('tags_bwg', 'bwg_nonce');
        ?>
      <span class="tag_icon"></span>
      <h2><?php 
        _e("Tags", 'bwg_back');
        ?>
</h2>
      <div class="buttons_div">
        <input class="button-secondary" type="submit" value="<?php 
        _e("Save", 'bwg_back');
        ?>
" onclick="if (confirm('Do you want to save items?')){
                                                                    spider_set_input_value('task', 'edit_tags');
                                                                  } else {
                                                                    return false;
                                                                  }" />
        <input class="button-secondary" type="submit" value="<?php 
        _e("Delete", 'bwg_back');
        ?>
" onclick="if (confirm('Do you want to delete selected items?')) {
                                                                      spider_set_input_value('task', 'delete_all');
                                                                    } else {
                                                                      return false;
                                                                    }" />
      </div>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'tags_form');
        WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
          <tr>
            <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
            <th class="table_small_col <?php 
        if ($order_by == 'A.term_id') {
            echo $order_class;
        }
        ?>
">
              <a onclick="spider_set_input_value('task', '');
                          spider_set_input_value('order_by', 'A.term_id');
                          spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'A.term_id' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                          spider_form_submit(event, 'tags_form')" href="">
                <span>ID</span><span class="sorting-indicator"></span></th>
              </a>
            <th class="<?php 
        if ($order_by == 'A.name') {
            echo $order_class;
        }
        ?>
//.........这里部分代码省略.........
开发者ID:ChibiBeckyG,项目名称:supreme-giggle,代码行数:101,代码来源:BWGViewTags_bwg.php

示例4: display

    public function display()
    {
        global $WD_BWG_UPLOAD_DIR;
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $search_select_value = isset($_POST['search_select_value']) ? (int) $_POST['search_select_value'] : 0;
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'order';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $ids_string = '';
        ?>
    <div style="clear: both; float: left; width: 95%;">
      <div style="float:left; font-size: 14px; font-weight: bold;">
        This section allows you to create, edit and delete galleries.
        <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-gallery-guide-step-2.html">Read More in User Manual</a>
      </div>
      <div style="float: right; text-align: right;">
        <a style="color: red; text-decoration: none;" target="_blank" href="http://web-dorado.com/products/wordpress-photo-gallery-plugin.html">
          <img width="215" border="0" alt="web-dorado.com" src="<?php 
        echo WD_BWG_URL . '/images/header.png';
        ?>
" />
          <p style="font-size: 16px; margin: 0; padding: 0 20px 0 0;">Get the full version</p>
        </a>
      </div>
    </div>
    <form class="wrap" id="galleries_form" method="post" action="admin.php?page=galleries_bwg" style="float: left; width: 95%;">
      <span class="gallery-icon"></span>
      <h2>
        Galleries
        <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
                                               spider_form_submit(event, 'galleries_form')">Add new</a>
      </h2>
      <div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table shoud be saved.</p></strong></div>
      <div class="buttons_div">
        <span class="button-secondary non_selectable" onclick="spider_check_all_items()">
          <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
          <span style="vertical-align: middle;">Select All</span>
        </span>
        <input id="show_hide_weights"  class="button-secondary" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
        <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="Save Order" />
        <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
        <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'unpublish_all')" value="Unpublish" />
        <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
                                                       spider_set_input_value('task', 'delete_all');
                                                     } else {
                                                       return false;
                                                     }" value="Delete" />
      </div>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search('Name', $search_value, 'galleries_form');
        WDWLibrary::html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form');
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
          <th class="table_small_col"></th>
          <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0;" /></th>
          <th class="table_small_col <?php 
        if ($order_by == 'id') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('task', '');
                        spider_set_input_value('order_by', 'id');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'id' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'galleries_form')" href="">
              <span>ID</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="table_extra_large_col">Thumbnail</th>
          <th class="<?php 
        if ($order_by == 'name') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('task', '');
                        spider_set_input_value('order_by', 'name');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'name' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'galleries_form')" href="">
              <span>Name</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="<?php 
        if ($order_by == 'slug') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('task', '');
//.........这里部分代码省略.........
开发者ID:phuluang,项目名称:rosewellmusic,代码行数:101,代码来源:BWGViewGalleries_bwg.php

示例5: display

    public function display()
    {
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'name';
        $image_id = isset($_GET['image_id']) ? esc_html($_GET['image_id']) : (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : '0');
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $per_page = $this->model->per_page();
        $pager = 0;
        wp_print_scripts('jquery');
        wp_print_styles('admin-bar');
        wp_print_styles('wp-admin');
        wp_print_styles('dashicons');
        wp_print_styles('buttons');
        wp_print_styles('wp-auth-check');
        if (get_bloginfo('version') < '3.9') {
            ?>
    <link media="all" type="text/css" href="<?php 
            echo get_admin_url();
            ?>
css/colors<?php 
            echo get_bloginfo('version') < '3.8' ? '-fresh' : '';
            ?>
.min.css" id="colors-css" rel="stylesheet">
    <?php 
        }
        ?>
    <link media="all" type="text/css" href="<?php 
        echo WD_BWG_URL . '/css/bwg_tables.css?ver=' . wd_bwg_version();
        ?>
" id="bwg_tables-css" rel="stylesheet">
    <script src="<?php 
        echo WD_BWG_URL . '/js/bwg.js?ver=' . wd_bwg_version();
        ?>
" type="text/javascript"></script>
    <form class="wrap wp-core-ui bwg_form" id="tags_form" method="post" action="<?php 
        echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page, 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
        ?>
" style="width:99%; margin: 0 auto;">
      <?php 
        wp_nonce_field('addTags', 'bwg_nonce');
        ?>
      <h2 style="width:200px; float:left;"><?php 
        _e("Tags", 'bwg_back');
        ?>
</h2>
      <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php 
        echo $image_id;
        ?>
', event);" style="float:right; padding: 9px 0px 4px 0">
        <div class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add" style="border:none;padding-top:8px !important;">ADD </div>
      </a>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search(__('Name', 'bwg_back'), $search_value, 'tags_form', 'position_search');
        WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
          <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
          <th class="sortable table_small_col <?php 
        if ($order_by == 'term_id') {
            echo $order_class;
        }
        ?>
" style="padding-left:15px">
            <a onclick="spider_set_input_value('order_by', 'term_id');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'term_id' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'tags_form')" href="">
              <span>ID</span><span class="sorting-indicator"></span></th>
            </a>
          <th class="sortable <?php 
        if ($order_by == 'name') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('order_by', 'name');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'name' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'tags_form')" href="">
              <span><?php 
        _e("Name", 'bwg_back');
        ?>
</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="sortable <?php 
        if ($order_by == 'slug') {
            echo $order_class;
        }
        ?>
//.........这里部分代码省略.........
开发者ID:benshez,项目名称:DreamWeddingCeremonies,代码行数:101,代码来源:BWGViewAddTags.php

示例6: display

    public function display()
    {
        $album_id = isset($_GET['album_id']) ? esc_html(stripslashes($_GET['album_id'])) : (isset($_POST['album_id']) ? esc_html(stripslashes($_POST['album_id'])) : '');
        $rows_data = $this->model->get_rows_data($album_id);
        $page_nav = $this->model->page_nav($album_id);
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'name';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        $per_page = $this->model->per_page();
        $pager = 0;
        wp_print_scripts('jquery');
        wp_print_scripts('wp-pointer');
        wp_print_styles('admin-bar');
        wp_print_styles('dashicons');
        wp_print_styles('wp-admin');
        wp_print_styles('buttons');
        wp_print_styles('wp-auth-check');
        wp_print_styles('wp-pointer');
        if (get_bloginfo('version') < '3.9') {
            ?>
    <link media="all" type="text/css" href="<?php 
            echo get_admin_url();
            ?>
css/colors<?php 
            echo get_bloginfo('version') < '3.8' ? '-fresh' : '';
            ?>
.min.css" id="colors-css" rel="stylesheet">
    <?php 
        }
        ?>
    <link media="all" type="text/css" href="<?php 
        echo WD_BWG_URL . '/css/bwg_tables.css?ver=' . wd_bwg_version();
        ?>
" id="spider_audio_player_tables-css" rel="stylesheet">
    <script src="<?php 
        echo WD_BWG_URL . '/js/bwg.js?ver=' . wd_bwg_version();
        ?>
" type="text/javascript"></script>
    <form class="wrap wp-core-ui bwg_form" id="albums_galleries_form" method="post" action="<?php 
        echo add_query_arg(array('action' => 'addAlbumsGalleries', 'width' => '700', 'height' => '550', 'callback' => 'bwg_add_items', 'bwg_items_per_page' => $per_page, 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
        ?>
" style="width:95%; margin: 0 auto;">
      <?php 
        wp_nonce_field('addAlbumsGalleries', 'bwg_nonce');
        ?>
      <h2 style="width:200px;float:left"><?php 
        _e("Albums/Galleries", 'bwg_back');
        ?>
</h2>
      <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Album/Gallery" onclick="spider_get_items(event);" style="float:right; padding: 9px 0px 4px 0">
        <img id='add_albums' src="<?php 
        echo WD_BWG_URL . '/images/add_but.png';
        ?>
" style="border:none;" />
      </a>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'albums_galleries_form');
        WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'albums_galleries_form', $per_page);
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
          <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
          <th class="table_small_col <?php 
        if ($order_by == 'id') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('order_by', 'id');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'id' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'albums_galleries_form')" href="">
              <span>ID</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="table_medium_col_uncenter <?php 
        if ($order_by == 'is_album') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('task', '');
                        spider_set_input_value('order_by', 'is_album');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'is_album' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'albums_galleries_form')" href="">
              <span><?php 
        _e("Type", 'bwg_back');
        ?>
</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="<?php 
//.........这里部分代码省略.........
开发者ID:brunoluizgr,项目名称:site-broove,代码行数:101,代码来源:BWGViewAddAlbumsGalleries.php

示例7: display

    public function display()
    {
        $rows_data = $this->model->get_rows_data();
        $page_nav = $this->model->page_nav();
        $search_value = isset($_POST['search_value']) ? esc_html(stripslashes($_POST['search_value'])) : '';
        $asc_or_desc = isset($_POST['asc_or_desc']) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc';
        $order_by = isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'name';
        $image_id = isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0';
        $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
        ?>
    <link media="all" type="text/css" href="<?php 
        echo get_admin_url();
        ?>
load-styles.php?c=1&amp;dir=ltr&amp;load=admin-bar,wp-admin,dashicons,buttons,wp-auth-check" rel="stylesheet">
    <link media="all" type="text/css" href="<?php 
        echo get_admin_url();
        ?>
css/colors<?php 
        echo get_bloginfo('version') < '3.8' ? '-fresh' : '';
        ?>
.min.css" id="colors-css" rel="stylesheet">
    <link media="all" type="text/css" href="<?php 
        echo WD_BWG_URL . '/css/bwg_tables.css';
        ?>
" id="bwg_tables-css" rel="stylesheet">
    <script language="javascript" type="text/javascript" src="<?php 
        echo get_option("siteurl");
        ?>
/wp-includes/js/jquery/jquery.js"></script>
    <script src="<?php 
        echo WD_BWG_URL . '/js/bwg.js';
        ?>
" type="text/javascript"></script>
    <form class="wrap wp-core-ui" id="tags_form" method="post" action="<?php 
        echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
        ?>
" style="width:95%; margin: 0 auto;">
      <h2 style="width:200px; float:left;">Tags</h2>
      <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php 
        echo $image_id;
        ?>
', event);" style="float:right; padding: 9px 0px 4px 0">
        <img src="<?php 
        echo WD_BWG_URL . '/images/add_but.png';
        ?>
" style="border:none;" />
      </a>
      <div class="tablenav top">
        <?php 
        WDWLibrary::search('Name', $search_value, 'tags_form');
        WDWLibrary::html_page_nav($page_nav['total'], $page_nav['limit'], 'tags_form');
        ?>
      </div>
      <table class="wp-list-table widefat fixed pages">
        <thead>
          <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
          <th class="table_small_col <?php 
        if ($order_by == 'id') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('order_by', 'id');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'id' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'tags_form')" href="">
              <span>ID</span><span class="sorting-indicator"></span></th>
            </a>
          <th class="<?php 
        if ($order_by == 'name') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('order_by', 'name');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'name' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'tags_form')" href="">
              <span>Name</span><span class="sorting-indicator"></span>
            </a>
          </th>
          <th class="<?php 
        if ($order_by == 'slug') {
            echo $order_class;
        }
        ?>
">
            <a onclick="spider_set_input_value('order_by', 'slug');
                        spider_set_input_value('asc_or_desc', '<?php 
        echo isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) == 'slug' && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc' ? 'desc' : 'asc';
        ?>
');
                        spider_form_submit(event, 'tags_form')" href="">
              <span>Slug</span><span class="sorting-indicator"></span>
            </a>
          </th>
//.........这里部分代码省略.........
开发者ID:phuluang,项目名称:rosewellmusic,代码行数:101,代码来源:BWGViewAddTags.php


注:本文中的WDWLibrary::html_page_nav方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。