예제 #1
0
      </tr>
    <tr>
      <td bordercolor="#F2F2F2" bgcolor="#F2F2F2"><hr width="500" /></td>
      <td bordercolor="#F2F2F2" bgcolor="#F2F2F2">&nbsp;</td>
      </tr>
    <tr>
      <td width="76%" bgcolor="#F2F2F2"><table width="100%" border="0" cellspacing="0">
        <tr>
          <td width="39%" align="right" bgcolor="#F9F9F9">Category of the article </td>
          <td width="1%" bgcolor="#F9F9F9">&nbsp;</td>
          <td width="60%" bgcolor="#F9F9F9">
		  <select name="category" id="category">
		  
            <option value="null" >Select Category</option>
            <?php 
$category = EJHSJournalArticleCategory::queryAll();
?>
            <?php 
foreach ($category as $key => $name) {
    ?>
            	<option value="<?php 
    echo $key;
    ?>
" 
				<?php 
    if ($selectedCategory == $key) {
        ?>
		
				 selected="selected"
				<?php 
    }
예제 #2
0
            $curCategory = $row['category'];
            ?>

	<div id="showArticles" name="showArticles" style="margin-bottom:10px;">
		<?php 
            if ($showCover) {
                ?>
		<img src="<?php 
                echo $upload_location . "/" . $coverpage;
                ?>
" height="125" width="95" style="float:right; margin:20px" /><br />
		<?php 
            }
            $showCover = FALSE;
            if ($curCategory != $prevCategory) {
                $categoryName = EJHSJournalArticleCategory::queryOne($curCategory);
                ?>
			<?php 
                echo $categoryName;
                ?>
 
		<?php 
                $prevCategory = $curCategory;
            }
            ?>
		<?php 
            echo $title;
            ?>
<br />
		<em> <?php 
            echo $authors;