コード例 #1
0
    function showLoadPanel(&$cid)
    {
        $option = JRequest::getCmd('option');
        ?>
        <form action="index.php" method="post" name="adminForm">

		<table class="adminheading">
		<tr>
			<th class="edit" rowspan="2" nowrap="nowrap"><?php 
        echo JText::_('BYJG_LOADLIST');
        ?>
</th>
	  </tr>
	  </table>

	  <table cellspacing="0" cellpadding="0" width="100%">
		<tr valign="top">
			<td valign="top">
    	  <table class="adminlist">
    		<tr>
    			<th class="title" colspan="2"></th>
          </tr>
		  
		  <tr>
			<td><b><?php 
        echo JText::_('BYJG_SELECTED_USER');
        ?>
</b><br/>
			<ul>
			<?php 
        foreach ($cid as $user) {
            $u = new ByJGUser($user);
            echo "<li>" . $u->userName() . "</li>";
            unset($u);
        }
        ?>
		  </ul>
			</td>
			</tr>
          
          <tr>
          	<td>
          		<b>
          			<?php 
        echo JText::_('BYJG_NEW_CREDITS');
        ?>
:
          		</b>
          		<input type="text" name="credits" value="0" size="4">
          		<input type="submit" name="button" value="<?php 
        echo JText::_('BYJG_SAVE');
        ?>
">
          	</td>
          </tr>
			

    	  </table>
    	</td>
    </tr>
    </table>

<?php 
        foreach ($cid as $id) {
            echo '<input type="hidden" name="cid[]" value="' . $id . '" />';
        }
        ?>

	  <input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="act" value="user" />
		<input type="hidden" name="task" value="loadList" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="hidemainmenu" value="0" />
		</form>
		<table style="width: 100%;">
	<tr>
		<td style="text-align: center;">
			<div id="assinatura">
				<div style="float:left; width: 100%; text-align: center;">
					<br /><img src="http://www.byjg.com.br/imagens/logo-byjg-joomla.png" alt="SMS BYJG - ByJG Tecnologia e Sistemas" title="SMS BYJG - ByJG Tecnologia e Sistemas" width="250" height="35" />
				</div>
			</div>
		</td>
	</tr>
</table>
	  <?php 
    }