Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Page Liste
- *
- * A custom page template without sidebar.
- *
- * The "Template Name:" bit above allows this to be selectable
- * from a dropdown menu on the edit page screen.
- *
- * @package WordPress
- * @subpackage Twenty_Ten
- * @since Twenty Ten 1.0
- */
- get_header(); ?>
- <!-- main content: primary + sidebar(s) -->
- <div id="main">
- <a name="M1"></a>
- <div id="main-inside" class="clear-block">
- <!-- primary content -->
- <div id="primary-content">
- <div class="blocks">
- <?php do_action('mystique_before_primary'); ?>
- <?php
- //query_posts('showposts=60','&orderby=title&order=asc');
- query_posts( 'posts_per_page=-1'.'&orderby=title&order=asc');
- ?>
- <table width="95%">
- <tr>
- <td><a href="#0">0-9</a></td>
- <?php for($i=65;$i<91;$i++){
- if($i==78) echo '</tr><tr>';
- echo '<td><a href="#'.chr($i).'">'.chr($i).'</a></td>';
- } ?>
- </tr>
- </table>
- <table width="95%">
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- $values = get_post_custom_values("dvd_cover");
- if (isset($values[0])) {
- ?>
- <?php }
- $titre=get_the_title(get_the_ID());
- if($premiere_lettre!=substr($titre, 0, 1)) {
- $premiere_lettre=substr($titre, 0, 1);
- echo '<tr><td><b><a name="'.$premiere_lettre.'">'.$premiere_lettre.'</a></b></td><td><p align="right"><a href="#M1">Up</a></p></td></tr>';
- }
- //$resume=addslashes(htmlspecialchars(get_the_excerpt()));
- //$resume=addslashes(get_the_content());
- ?>
- <tr><td><img src="<?php echo $values[0]; ?>" width="75"></td><td><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a><?php echo $resume; ?></td></tr>
- <?php endwhile; ?>
- </table>
- <?php do_action('mystique_after_primary'); ?>
- </div>
- </div>
- <!-- /primary content -->
- <?php get_sidebar(); ?>
- </div>
- </div>
- <!-- /main content -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement