• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP print_column_headers函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中print_column_headers函数的典型用法代码示例。如果您正苦于以下问题:PHP print_column_headers函数的具体用法?PHP print_column_headers怎么用?PHP print_column_headers使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: ribcage_manage_artists


//.........这里部分代码省略.........
							<th scope="row">Artist Picture 3</th> 
							<td>
								<input type="text" style="width:320px;" class="regular-text code" value="<?php 
        artist_picture_3();
        ?>
" name="artist_picture_3" id="artist_picture_3" maxlength="200" />
							</td> 
						</tr>
						<tr valign="top">
							<th scope="row">Artist Picture HQ Zipfile URL</th> 
							<td>
								<input type="text" style="width:320px;" class="regular-text code" value="<?php 
        echo $artist_picture_zip_val;
        ?>
" name="artist_picture_zip" id="artist_picture_zip" maxlength="200" />
							</td> 
						</tr>
					</table>
					<p class="submit">
						<input type="submit" name="Submit" class="button-primary" value="Save Changes" />
					</p>
			</form>
	</div>
<?php 
    } else {
        ?>
	<?php 
        $artists = list_artists_blurb();
        $alt = 0;
        ?>
	<div class="wrap">
		<div id="icon-plugins" class="icon32"><br /></div>
		<h2>Manage Artists</h2>
			<form action="<?php 
        echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']);
        ?>
" method="post" id="ribcage_manage_artists" name="manage_artists"> 
				<table class="widefat post fixed" cellspacing="0">
						<thead>
						<tr>
						<?php 
        print_column_headers('ribcage-manage-artist');
        ?>
			
						</tr>
						</thead>
						<tfoot>
						<tr>			
						<?php 
        print_column_headers('ribcage-manage-artist', FALSE);
        ?>
	
						</tr>
						</tfoot>            
						<tbody>
							<?php 
        while (have_artists()) {
            the_artist();
            ?>
							<?php 
            $manage_link = wp_nonce_url('?page=ribcage&artist=' . artist_id(false), 'manage_artists');
            $delete_link = wp_nonce_url('?page=ribcage&artist=' . artist_id(false) . '&ribcage_action=delete', 'manage_artists');
            ?>
							<?php 
            echo $alt % 2 ? '<tr valign="top" class="">' : '<tr valign="top" class="alternate">';
            ++$alt;
            ?>
		
							<th scope="row" class="check-column"><input type="checkbox" name="artistcheck[]" value="2" /></th>
							<td class="column-name">
								<strong><a class="row-title" href="?page=manage_artists&artist=<?php 
            artist_id();
            ?>
" title="<?php 
            artist_name();
            ?>
" ><?php 
            artist_name();
            ?>
</strong></a><br /><div class="row-actions"><span class='edit'><a href="<?php 
            echo $manage_link;
            ?>
">Edit</a> | </span><span class='delete'><a class='submitdelete' href='<?php 
            echo $delete_link;
            ?>
' onclick="if ( confirm('You are about to delete \'<?php 
            artist_name();
            ?>
\'\n  \'Cancel\' to stop, \'OK\' to delete.') ) { return true;}return false;">Delete</a></span></div></td>
							</tr>
							<?php 
        }
        ?>
						</tbody>
					</table>
			</form>
	</div>
	<?php 
    }
}
开发者ID:recordsonribs,项目名称:ribcage,代码行数:101,代码来源:artists.php


示例2: wp_nonce_field

<?php 
    wp_nonce_field('bulk-bookmarks');
    ?>
<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php 
    print_column_headers('link-manager');
    ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
    print_column_headers('link-manager', false);
    ?>
	</tr>
	</tfoot>

	<tbody>
<?php 
    $alt = 0;
    foreach ($links as $link) {
        $link = sanitize_bookmark($link);
        $link->link_name = esc_attr($link->link_name);
        $link->link_category = wp_get_link_cats($link->link_id);
        $short_url = str_replace('http://', '', $link->link_url);
        $short_url = preg_replace('/^www\\./i', '', $short_url);
        if ('/' == substr($short_url, -1)) {
            $short_url = substr($short_url, 0, -1);
开发者ID:jinpingv,项目名称:website_wrapper,代码行数:31,代码来源:link-manager.php


示例3: wpsc_options_checkout


//.........这里部分代码省略.........
    _e("+ Add New Form Set", 'wpsc');
    ?>
</a>
				</p>
				
				<p class='add_new_form_set_forms'>
					<label><?php 
    _e("Add new Form Set", 'wpsc');
    ?>
: <input type="text" value="" name="new_form_set" /></label>
					<input type="submit" value="<?php 
    _e('Add');
    ?>
" class="button-secondary" id="formset-add-sumbit"/>
				</p>
				
				<?php 
    if (!isset($_GET['checkout-set'])) {
        $filter = 0;
        $form_sql = "SELECT * FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `active` = '1' AND `checkout_set` IN ('" . $filter . "') ORDER BY `order`;";
    } else {
        $filter = $wpdb->escape($_GET['checkout-set']);
        $form_sql = "SELECT * FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `active` = '1' AND `checkout_set` IN ('" . $filter . "') ORDER BY `order`;";
    }
    $email_form_field = $wpdb->get_row("SELECT `id` FROM `" . WPSC_TABLE_CHECKOUT_FORMS . "` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `order` ASC LIMIT 1", ARRAY_A);
    $form_data = $wpdb->get_results($form_sql, ARRAY_A);
    $selected_checkout_set = $_GET['checkout-set'];
    echo "<input type='hidden' name='selected_form_set' value='" . $selected_checkout_set . "' />";
    ?>
			<table id="wpsc_checkout_list" class="widefat page fixed"  cellspacing="0">
			<thead>
				<tr>
					<?php 
    print_column_headers('display-checkout-list');
    ?>
				</tr>
			</thead>
		
			<tfoot>
				<tr>
					<?php 
    print_column_headers('display-checkout-list', false);
    ?>
				</tr>
			</tfoot>
		
			<tbody id='wpsc_checkout_list_body'>
			<?php 
    foreach ((array) $form_data as $form_field) {
        echo "<tr id='checkout_" . $form_field['id'] . "' class='checkout_form_field'>\n\r";
        echo '<td class="drag"><a href="" onclick="return false;" title="Click and Drag to Order Checkout Fields"><img src="' . WPSC_URL . '/images/roll-over-drag.jpg" alt="roll-over-drag" /></a></td>';
        echo "<td class='namecol'><input type='text' name='form_name[" . $form_field['id'] . "]' value='" . htmlentities(stripslashes($form_field['name']), ENT_QUOTES, "UTF-8") . "' /></td>";
        echo "      <td class='typecol'>";
        echo "<select class='wpsc_checkout_selectboxes' name='form_type[" . $form_field['id'] . "]'>";
        foreach ($form_types as $form_type_name => $form_type) {
            $selected = '';
            if ($form_type === $form_field['type']) {
                $selected = "selected='selected'";
            }
            // define('__('Textarea', 'wpsc')', 'Textarea');
            echo "<option value='" . $form_type . "' " . $selected . ">" . __($form_type_name, 'wpsc') . "</option>";
        }
        echo "</select>";
        if (in_array($form_field['type'], array('select', 'radio', 'checkbox'))) {
            echo "<a class='wpsc_edit_checkout_options' rel='form_options[" . $form_field['id'] . "]' href=''>more options</a>";
        }
开发者ID:BGCX261,项目名称:zombie-craft-svn-to-git,代码行数:67,代码来源:checkout.php


示例4: print_column_headers

            }
            ?>

<table class="widefat fixed" cellspacing="0">
<thead>
<tr class="thead">
<?php 
            print_column_headers('users');
            ?>
</tr>
</thead>

<tfoot>
<tr class="thead">
<?php 
            print_column_headers('users', false);
            ?>
</tr>
</tfoot>

<tbody id="users" class="list:user user-list">
<?php 
            $style = '';
            foreach ($wp_user_search->get_results() as $userid) {
                $user_object = new WP_User($userid);
                $roles = $user_object->roles;
                $role = array_shift($roles);
                $style = ' class="alternate"' == $style ? '' : ' class="alternate"';
                echo "\n\t" . user_row($user_object, $style, $role);
            }
            ?>
开发者ID:blowery,项目名称:wordpress,代码行数:31,代码来源:users.php


示例5: print_column_headers

// don't load directly
if ( !defined('ABSPATH') )
	die('-1');

if ( have_posts() ) { ?>
<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php print_column_headers('upload'); ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php print_column_headers('upload', false); ?>
	</tr>
	</tfoot>

	<tbody id="the-list" class="list:post">
<?php
add_filter('the_title','esc_html');
$alt = '';
$posts_columns = get_column_headers('upload');
$hidden = get_hidden_columns('upload');

while ( have_posts() ) : the_post();

if ( $is_trash && $post->post_status != 'trash' )
	continue;
elseif ( !$is_trash && $post->post_status == 'trash' )
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:edit-attachment-rows.php


示例6: print_column_headers

<div class="clear"></div>

<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php 
        print_column_headers('categories');
        ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
        print_column_headers('categories', false);
        ?>
	</tr>
	</tfoot>

	<tbody id="the-list" class="list:cat">
<?php 
        cat_rows(0, 0, 0, $pagenum, $cats_per_page);
        ?>
	</tbody>
</table>

<div class="tablenav">
<?php 
        if ($page_links) {
            echo "<div class='tablenav-pages'>{$page_links}</div>";
开发者ID:ericandrewlewis,项目名称:wordpress-mu,代码行数:30,代码来源:categories.php


示例7: qs_config_hook

function qs_config_hook($request_uri)
{
    global $q_config;
    ?>
<h3><?php 
    _e('qTranslate Services Settings', 'qtranslate');
    ?>
<span id="qtranslate-show-services" style="display:none"> (<a name="qtranslate_service_settings" href="#qtranslate_service_settings" onclick="showServices();"><?php 
    _e('Show', 'qtranslate');
    ?>
</a>)</span></h3>
<table class="form-table" id="qtranslate-services">
	<tr>
		<th scope="row"><?php 
    _e('qTranslate Services', 'qtranslate');
    ?>
</th>
		<td>
			<?php 
    if (!function_exists('openssl_get_publickey')) {
        printf(__('<div id="message" class="error fade"><p>qTranslate Services could not load <a href="%s">OpenSSL</a>!</p></div>'), 'http://www.php.net/manual/book.openssl.php');
    }
    ?>
			<label for="qtranslate_services"><input type="checkbox" name="qtranslate_services" id="qtranslate_services" value="1"<?php 
    echo $q_config['qtranslate_services'] ? ' checked="checked"' : '';
    ?>
/> <?php 
    _e('Enable qTranslate Services', 'qtranslate');
    ?>
</label>
			<br/>
			<?php 
    _e('With qTranslate Services, you will be able to use professional human translation services with a few clicks. (Requires OpenSSL)', 'qtranslate');
    ?>
<br />
			<?php 
    _e('Save after enabling to see more Configuration options.', 'qtranslate');
    ?>
		</td>
	</tr>
<?php 
    if ($q_config['qtranslate_services']) {
        $service_settings = get_option('qs_service_settings');
        $services = qs_queryQS(QS_GET_SERVICES);
        $orders = get_option('qs_orders');
        ?>
	<tr valign="top">
		<th scope="row"><h4><?php 
        _e('Open Orders', 'qtranslate');
        ?>
</h4></th>
		<td>
<?php 
        if (is_array($orders) && sizeof($orders) > 0) {
            ?>
			<table class="widefat">
				<thead>
				<tr>
<?php 
            print_column_headers('order');
            ?>
				</tr>
				</thead>

				<tfoot>
				<tr>
<?php 
            print_column_headers('order', false);
            ?>
				</tr>
				</tfoot>
<?php 
            foreach ($orders as $order) {
                $post =& get_post($order['post_id']);
                if (!$post) {
                    continue;
                }
                $post->post_title = wp_specialchars(qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post->post_title));
                ?>
				<tr>
					<td class="qs_no-bottom-border"><a href="post.php?action=edit&post=<?php 
                echo $order['post_id'];
                ?>
" title="<?php 
                printf(__('Edit %s', 'qtranslate'), $post->post_title);
                ?>
"><?php 
                echo $post->post_title;
                ?>
</a></td>
					<td class="qs_no-bottom-border"><a href="<?php 
                echo $services[$order['service_id']]['service_url'];
                ?>
" title="<?php 
                _e('Website', 'qtranslate');
                ?>
"><?php 
                echo $services[$order['service_id']]['service_name'];
                ?>
</a></td>
//.........这里部分代码省略.........
开发者ID:xenda,项目名称:camaraitalia,代码行数:101,代码来源:qtranslate_services.php


示例8: esc_url

	</div>

	<div class="tablenav">
		<div class="alignleft actions">
			<a href="<?php echo esc_url(add_query_arg(array_merge(stripslashes_deep($_GET),array('page'=>$this->Admin->pagename('categories'),'a'=>null)),admin_url('admin.php'))); ?>" class="button add-new">&larr; <?php printf(__('Return to %s','Ecart'),$Category->name); ?></a>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>

	<table id="arrange-products" class="widefat" cellspacing="0">
		<thead>
		<tr><?php print_column_headers('ecart_page_ecart-categories'); ?></tr>
		</thead>
		<tfoot>
		<tr><?php print_column_headers('ecart_page_ecart-categories',false); ?></tr>
		</tfoot>
	<?php if (sizeof($products) > 0): ?>
		<tbody id="categories-table" class="list categories">
		<?php
		$hidden = array();
		$hidden = get_hidden_columns('ecart_page_ecart-categories');

		$even = false;
		foreach ($products as $Product):

		$editurl = esc_url(esc_attr(add_query_arg(array_merge(stripslashes_deep($_GET),
			array('page'=>$this->Admin->pagename('products'),
					'id'=>$Product->id)),
					admin_url('admin.php'))));
开发者ID:robbiespire,项目名称:paQui,代码行数:30,代码来源:products.php


示例9: print_column_headers

if ($comments) {
    ?>

<table class="widefat comments fixed" cellspacing="0">
<thead>
	<tr>
<?php 
    print_column_headers('edit-comments');
    ?>
	</tr>
</thead>

<tfoot>
	<tr>
<?php 
    print_column_headers('edit-comments', false);
    ?>
	</tr>
</tfoot>

<tbody id="the-comment-list" class="list:comment">
<?php 
    foreach ($comments as $comment) {
        _wp_comment_row($comment->comment_ID, $mode, $comment_status);
    }
    ?>
</tbody>
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
<?php 
    foreach ($extra_comments as $comment) {
        _wp_comment_row($comment->comment_ID, $mode, $comment_status);
开发者ID:google-code-backups,项目名称:pumpmyvote,代码行数:31,代码来源:edit-comments.php


示例10: print_column_headers

</a>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>

	<table id="arrange-categories" class="widefat" cellspacing="0">
		<thead>
		<tr><?php 
print_column_headers('shopp_page_shopp-categories');
?>
</tr>
		</thead>
		<tfoot>
		<tr><?php 
print_column_headers('shopp_page_shopp-categories', false);
?>
</tr>
		</tfoot>
	<?php 
if (sizeof($Categories) > 0) {
    ?>
		<tbody id="categories-table" class="list categories">
		<?php 
    $hidden = array();
    $hidden = get_hidden_columns('shopp_page_shopp-categories');
    $even = false;
    foreach ($Categories as $Category) {
        $editurl = esc_url(esc_attr(add_query_arg(array_merge(stripslashes_deep($_GET), array('page' => $this->Admin->pagename('categories'), 'id' => $Category->id)), admin_url('admin.php'))));
        $CategoryName = empty($Category->name) ? '(' . __('no category name', 'Shopp') . ')' : $Category->name;
        $membership = explode('/', $Category->uri);
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:arrange.php


示例11: orders_page


//.........这里部分代码省略.........
                esc_attr_e('Filter');
                ?>
" class="button-secondary" />
      <?php 
            }
            ?>
      </div>

      <?php 
            if ($page_links) {
                ?>
      <div class="tablenav-pages"><?php 
                $count_posts = $post_type_object->hierarchical ? $wp_query->post_count : $wp_query->found_posts;
                $page_links_text = sprintf('<span class="displaying-num">' . __('Displaying %s&#8211;%s of %s') . '</span>%s', number_format_i18n(($pagenum - 1) * $per_page + 1), number_format_i18n(min($pagenum * $per_page, $count_posts)), number_format_i18n($count_posts), $page_links);
                echo $page_links_text;
                ?>
</div>
      <?php 
            }
            ?>

      <div class="clear"></div>
      </div>

      <div class="clear"></div>

      <table class="widefat <?php 
            echo $post_type_object->hierarchical ? 'page' : 'post';
            ?>
 fixed" cellspacing="0">
      	<thead>
      	<tr>
      <?php 
            print_column_headers($current_screen);
            ?>
      	</tr>
      	</thead>

      	<tfoot>
      	<tr>
      <?php 
            print_column_headers($current_screen, false);
            ?>
      	</tr>
      	</tfoot>

      	<tbody>
      <?php 
            if (function_exists('post_rows')) {
                post_rows();
            } else {
                $wp_list_table = _get_list_table('WP_Posts_List_Table');
                $wp_list_table->display_rows();
            }
            ?>
      	</tbody>
      </table>

      <div class="tablenav">

      <?php 
            if ($page_links) {
                echo "<div class='tablenav-pages'>{$page_links_text}</div>";
            }
            ?>
开发者ID:hscale,项目名称:webento,代码行数:66,代码来源:marketpress.php


示例12: wpsc_purchaselogs_displaylist


//.........这里部分代码省略.........
        $is_selected = 'selected="selected"';
    } else {
        $is_selected = '';
    }
    ?>
         <option <?php 
    echo $is_selected;
    ?>
 value='-1'><?php 
    _e('Status: All', 'wpsc');
    ?>
</option>
      </select>
      <input type='hidden' value='purchlog_filter_by' name='wpsc_admin_action' />
      <input type="submit" value="<?php 
    _e('Filter', 'wpsc');
    ?>
" name="doaction2" id="doaction2" class="button-secondary action" />
   </div>
      <?php 
    if (isset($_POST['purchlogs_searchbox']) && wpsc_have_purch_items() == false) {
        ?>
   <div class="updated settings-error"><p><?php 
        _e('There are no purchase logs for your selection, please try again.', 'wpsc');
        ?>
</p></div>
      <?php 
    }
    ?>
      <table class="widefat page fixed" cellspacing="0">
         <thead>
            <tr>
         <?php 
    print_column_headers('display-sales-list');
    ?>
            </tr>
         </thead>
         <tfoot>
            <tr>
         <?php 
    print_column_headers('display-sales-list', false);
    ?>
            </tr>
         </tfoot>
         <tbody>
         <?php 
    get_purchaselogs_content();
    ?>
         </tbody>
      </table>
      <p><strong><?php 
    _e('Total:', 'wpsc');
    ?>
</strong> <?php 
    echo wpsc_currency_display(wpsc_the_purch_total());
    ?>
</p>
<?php 
    if (!isset($purchlogs->current_start_timestamp) && !isset($purchlogs->current_end_timestamp)) {
        $purchlogs->current_start_timestamp = $purchlogs->earliest_timestamp;
        $purchlogs->current_end_timestamp = $purchlogs->current_timestamp;
    }
    $arr_params = array('wpsc_admin_action' => 'wpsc_downloadcsv', 'rss_key' => 'key', 'start_timestamp' => $purchlogs->current_start_timestamp, 'end_timestamp' => $purchlogs->current_end_timestamp);
    $piggy_url = 'http://www.bravenewcode.com/store/plugins/piggy/?utm_source=affiliate-6331&utm_medium=affiliates&utm_campaign=wpec#1';
    ?>
      <br />
开发者ID:hornet9,项目名称:Morato,代码行数:67,代码来源:display-sales-logs.php


示例13: powerpress_admin_mt


//.........这里部分代码省略.........
			{
				if( NoImport[j] == Elem.id )
					Elem.checked = true;
			}
		}
	}
}
//-->
</script>
<h2><?php 
    echo __('Import Episodes', 'powerpress');
    ?>
</h2>
<?php 
    if (count($results) == 0 || count($results) == 1) {
        ?>
	
	<p><?php 
        echo __('No episodes found to import.', 'powerpress');
        ?>
</p>
<?php 
    } else {
        ?>
<input type="hidden" name="action" value="powerpress-importmt" />
<p><?php 
        echo __('Select the media file under each feed for each episode you wish to import.', 'powerpress');
        ?>
</p>
<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php 
        print_column_headers('powerpressadmin_importmt');
        ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
        print_column_headers('powerpressadmin_importmt', false);
        ?>
	</tr>
	</tfoot>
	<tbody>
<?php 
        $StrandedEpisodes = 0;
        $ImportableEpisodes = 0;
        $MaxFileIndex = 1;
        $count = 0;
        while (list($post_id, $import_data) = each($results)) {
            $edit_link = get_edit_post_link($post_id);
            if ($post_id == 'feeds_required') {
                continue;
            }
            $columns = powerpressadmin_importmt_columns();
            $CurrentEnclosures = array();
            if (is_array($Settings['custom_feeds'])) {
                while (list($feed_slug, $value) = each($Settings['custom_feeds'])) {
                    if ($feed_slug == 'podcast') {
                        $enclosure_data = get_post_meta($post_id, 'enclosure', true);
                    } else {
                        $enclosure_data = get_post_meta($post_id, '_' . $feed_slug . ':enclosure', true);
                    }
                    if (!$enclosure_data) {
开发者ID:ryan2407,项目名称:Vision,代码行数:67,代码来源:powerpressadmin-mt.php


示例14: metaboxCategoryGroupList

 /**
  * Metabox for showing the groups as a list
  *
  * @param $data
  */
 function metaboxCategoryGroupList($data)
 {
     echo '<form id="posts-filter" action="" method="get">';
     echo '<div class="clear"></div>';
     echo '<table class="widefat fixed" cellspacing="0">';
     echo '<thead>';
     echo '<tr>';
     print_column_headers('categories_group');
     echo '</tr>';
     echo '</thead>';
     echo '<tfoot>';
     echo '<tr>';
     print_column_headers('categories_group', false);
     echo '</tr>';
     echo '</tfoot>';
     echo '<tbody id="the-list" class="list:group">';
     $this->printCategoryGroupRows();
     echo '</tbody>';
     echo '</table>';
     echo '<br class="clear" />';
     echo '</form>';
     //echo '</div>';
 }
开发者ID:nhatnam1102,项目名称:wp-content,代码行数:28,代码来源:avh-ec.admin.php


示例15: powerpress_admin_posttypefeeds

function powerpress_admin_posttypefeeds()
{
    $General = powerpress_get_settings('powerpress_general');
    $post_types = powerpress_admin_get_post_types(false);
    ?>
<h2><?php 
    echo __('Post Type Podcasting', 'powerpress');
    ?>
</h2>
<p>
	<?php 
    echo __('Post Type Podcasting adds custom podcast settings to specific Post Type feeds.', 'powerpress');
    ?>
</p>
<style type="text/css">
.column-url {
	width: 40%;
}
.column-name {
	width: 30%;
}
.column-feed-slug {
	width: 15%;
}
.column-post-type {
	width: 15%;
}
.column-episode-count {
	width: 15%;
}
.category-list {
	width: 100%;
}
.form-field select {
	width: 95%;
}
</style>
<div id="col-container">

<div id="col-right">
<table class="widefat fixed" cellspacing="0">
	<thead>
	<tr>
<?php 
    print_column_headers('powerpressadmin_posttypefeeds');
    ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
    print_column_headers('powerpressadmin_posttypefeeds', false);
    ?>
	</tr>
	</tfoot>
	<tbody>
<?php 
    $count = 0;
    while (list($null, $post_type) = each($post_types)) {
        $PostTypeSettingsArray = get_option('powerpress_posttype_' . $post_type);
        if (!$PostTypeSettingsArray) {
            continue;
        }
        while (list($feed_slug, $PostTypeSettings) = each($PostTypeSettingsArray)) {
            $feed_title = !empty($PostTypeSettings['title']) ? $PostTypeSettings['title'] : '(blank)';
            // $post_type
            // $feed_slug
            //global $wpdb;
            //	var_dump($term_info);
            //$category = get_category_to_edit($cat_ID);
            $columns = powerpress_admin_posttypefeeds_columns();
            $hidden = array();
            if ($count % 2 == 0) {
                echo '<tr valign="middle" class="alternate">';
            } else {
                echo '<tr valign="middle">';
            }
            $edit_link = admin_url('admin.php?page=powerpress/powerpressadmin_posttypefeeds.php&amp;action=powerpress-editposttypefeed&amp;feed_slug=' . $feed_slug . '&podcast_post_type=' . $post_type);
            $url = get_post_type_archive_feed_link($post_type, $feed_slug);
            $short_url = str_replace('http://', '', $url);
            $short_url = str_replace('www.', '', $short_url);
            if (strlen($short_url) > 35) {
                $short_url = substr($short_url, 0, 32) . '...';
            }
            foreach ($columns as $column_name => $column_display_name) {
                $class = "class=\"column-{$column_name}\"";
                switch ($column_name) {
                    case 'feed-slug':
                        echo "<td {$class}>{$feed_slug}";
                        echo "</td>";
                        break;
                    case 'name':
                        echo '<td ' . $class . '><strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">' . $feed_title . '</a></strong><br />';
                        $actions = array();
                        $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
                        $actions['remove'] = "<a class='submitdelete' href='" . admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_posttypefeeds.php&amp;action=powerpress-delete-posttype-feed&amp;podcast_post_type={$post_type}&amp;feed_slug={$feed_slug}", 'powerpress-delete-posttype-feed-' . $post_type . '_' . $feed_slug) . "' onclick=\"if ( confirm('" . esc_js(sprintf(__("You are about to remove podcast settings for Post Type '%s'\n  'Cancel' to stop, 'OK' to delete.", 'powerpress'), $feed_title)) . "') ) { return true;}return false;\">" . __('Remove', 'powerpress') . "</a>";
                        $action_count = count($actions);
                        $i = 0;
                        echo '<div class="row-actions">';
//.........这里部分代码省略.........
开发者ID:KimcoBlogSC,项目名称:Blog,代码行数:101,代码来源:powerpressadmin-posttypefeeds.php


示例16: qtranxf_conf


//.........这里部分代码省略.........

</div>
<div class="wrap">

<?php 
        qtranxf_admin_section_start(__('Languages', 'qtranslate'), 'languages');
        //id="qtranslate-admin-languages"
        ?>
<div id="col-container">

<div id="col-right">
<div class="col-wrap">
<h3><?php 
        _e('List of Configured Languages', 'qtranslate');
        ?>
</h3>
<p><small><?php 
        $language_names = qtranxf_language_configured('language_name');
        $flags = qtranxf_language_configured('flag');
        //$windows_locales = qtranxf_language_configured('windows_locale');
        printf(__('Only enabled languages are loaded at front-end, while all %d configured languages are listed here.', 'qtranslate'), count($language_names));
        echo ' ';
        _e('The table below contains both pre-defined and manually added or modified languages.', 'qtranslate');
        echo ' ';
        printf(__('You may %s or %s a language, or %s manually added language, or %s previous modifications of a pre-defined language.', 'qtranslate'), '"' . __('Enable', 'qtranslate') . '"', '"' . __('Disable', 'qtranslate') . '"', '"' . __('Delete', 'qtranslate') . '"', '"' . __('Reset', 'qtranslate') . '"');
        echo ' ';
        printf(__('Click %s to modify language properties.', 'qtranslate'), '"' . __('Edit', 'qtranslate') . '"');
        ?>
</small></p>
<table class="widefat">
	<thead>
	<tr>
<?php 
        print_column_headers('language');
        ?>
	</tr>
	</thead>

	<tfoot>
	<tr>
<?php 
        print_column_headers('language', false);
        ?>
	</tr>
	</tfoot>

	<tbody id="the-list" class="qtranxs-language-list" class="list:cat">
<?php 
        $languages_stored = get_option('qtranslate_language_names', array());
        $languages_predef = qtranxf_default_language_name();
        $flag_location_url = qtranxf_flag_location();
        $flag_location_dir = trailingslashit(WP_CONTENT_DIR) . $q_config['flag_location'];
        $flag_location_dir_def = dirname(QTRANSLATE_FILE) . '/flags/';
        $flag_location_url_def = trailingslashit(WP_CONTENT_URL) . '/plugins/' . basename(dirname(QTRANSLATE_FILE)) . '/flags/';
        foreach ($language_names as $lang => $language) {
            if ($lang == 'code') {
                continue;
            }
            $flag = $flags[$lang];
            if (file_exists($flag_location_dir . $flag)) {
                $flag_url = $flag_location_url . $flag;
            } else {
                $flag_url = $flag_location_url_def . $flag;
            }
            ?>
	<tr>
开发者ID:ycms,项目名称:framework,代码行数:67,代码来源:qtx_configuration.php


示例17: display


//.........这里部分代码省略.........
        ?>
			</select>
			<input type='submit' value='<?php 
        esc_attr_e('Filter', 'wpsc');
        ?>
' name='wpsc_checkout_set_filter' class='button-secondary' />
			<a href='#' class='add_new_form_set'><?php 
        esc_html_e("+ Add New Form Set", 'wpsc');
        ?>
</a>
		</p>

		<p class='add_new_form_set_forms'>
			<label><?php 
        esc_html_e("Add new Form Set", 'wpsc');
        ?>
:
			<input type="text" value="" name="new_form_set" /></label>
			<input type="submit" value="<?php 
        _e('Add', 'wpsc');
        ?>
" class="button-secondary" id="formset-add-sumbit"/>
		</p>

		<input type="hidden" name="selected_form_set" value="<?php 
        echo esc_attr($this->current_checkout_set);
        ?>
" />

		<table id="wpsc_checkout_list" class="widefat page fixed"  cellspacing="0">
			<thead>
				<tr>
					<?php 
        print_column_headers('display-checkout-list');
        ?>
				</tr>
			</thead>

			<tfoot>
				<tr>
					<?php 
        print_column_headers('display-checkout-list', false);
        ?>
				</tr>
			</tfoot>

			<tbody id='wpsc_checkout_list_body'>
				<?php 
        if (empty($this->form_fields)) {
            ?>
					<?php 
            $this->prototype_field('new');
            ?>
				<?php 
        } else {
            ?>
					<?php 
            foreach ($this->form_fields as $form_field) {
                ?>
						<tr data-field-id="<?php 
                echo esc_attr($form_field->id);
                ?>
" id="checkout_<?php 
                echo esc_attr($form_field->id);
                ?>
" class="checkout_form_field">
开发者ID:arturo-mayorga,项目名称:am_com,代码行数:67,代码来源:checkout.php


示例18: do_manage_taxonomies_page

    private function do_manage_taxonomies_page()
    {
        $taxonomy_names = $this->get_taxonomies();
        ?>
		<div class="wrap">
			<?php 
        screen_icon('taxonomy');
        ?>
			<h2>
				<?php 
        _e("Edit Taxonomies");
        ?>
  
				<a href="<?php 
        echo $this->get_add_taxonomy_url();
        ?>
" class="button add-new-h2"><?php 
        _e('Add New');
        ?>
</a> 
			</h2>
			<?php 
        if (!empty($_REQUEST['notice'])) {
            ?>
				<div id="message" class="updated fade"><p><strong><?php 
            echo stripslashes($_REQUEST['notice']);
            ?>
</strong></div>
			<?php 
        }
        ?>
		
			<?php 
        if (count($taxonomy_names)) {
            ?>
	
				<form id="posts-filter" action="<?php 
            $this->get_manage_taxonomies_url();
            ?>
" method="post">
					<div class="tablenav">
						<div class="alignleft actions">
							<select name="action">
								<option value="" selected="selected"><?php 
            _e('Bulk Actions');
            ?>
</option>
								<option value="bulk-delete"><?php 
            _e('Delete');
            ?>
</option>
							</select>
							<input type="submit" value="<?php 
            esc_attr_e('Apply');
            ?>
" name="doaction" id="doaction" class="button-secondary action" />
							<?php 
            wp_nonce_field('bulk-action');
            ?>
						</div>
						<br class="clear" />
					</div>
					<table class="widefat fixed" cellspacing="0">
						<thead>
							<tr class="thead">
								<?php 
            print_column_headers('dynamic_taxonomy');
            ?>
							</tr>
						</thead>
						<tfoot>
							<tr class="thead">
								<?php 
            print_column_headers('dynamic_taxonomy', false);
            ?>
							</tr>
						</tfoot>
						<tbody id="taxonomies" class="list:taxonomies taxonomy-list">
							<?php 
            $style = '';
            ?>
							<?php 
            foreach ($taxonomy_names as $taxonomy_name) {
                ?>
								<?php 
                $style = ' class="alternate"' == $style ? '' : ' class="alternate"';
                ?>
								<?php 
                echo "\n\t" . $this->dynamic_taxonomy_row($taxonomy_name, $style);
                ?>
							<?php 
            }
            ?>
						</tbody>
					</table>
					<div class="tablenav">
						<div class="alignleft actions">
							<select name="action2">
								<option value="" selected="selected"><?php 
            _e('Bulk Actions');
//.........这里部分代码省略.........
开发者ID:andru,项目名称:cms-press,代码行数:101,代码来源:dynamic-taxonomies.php


示例19: print_column_headers

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP print_column_style_code函数代码示例发布时间:2022-05-15
下一篇:
PHP print_collapsible_region_start函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap