Exemplo n.º 1
0
    function JLMS_editPaymentInfo_STEP2_HTML($status, $old_status, $courses_in, $id, $username, $option)
    {
        ?>
	<form action="index.php" method="post" name="adminForm">	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td valign="top" width="220">
			<div>
				<?php 
        joomla_lms_adm_html::JLMS_menu();
        ?>
			</div>
			</td>
			<td valign="top">		
			<?php 
        if (!class_exists('JToolBarHelper')) {
            ?>
				<table class="adminheading">
					<tr>
						<th class="edit">
						<small>
						<?php 
            echo _JLMS_PAYS_CHANGED_PAY_STATUS;
            ?>
 <b style="color:#333333 "><?php 
            echo $status;
            ?>
</b>.<br />
						<?php 
            /*You had changed payment details. Now status is <b style="color:#333333 "><?php echo $status;?></b>.<br />*/
            ?>
						<?php 
            echo strtolower($status) == 'completed' ? str_replace('{username}', $username, _JLMS_PAYS_YOU_WANT_SUBS_USR) : str_replace('{username}', $username, _JLMS_PAYS_YOU_WANT_DEL_USR);
            ?>
						</div><br />
						</small>
						</th>
						<td align="right"><?php 
            //echo $lists['status_filter']
            ?>
</td>
					</tr>
				</table>
			<?php 
        } else {
            $app =& JFactory::getApplication('administrator');
            $msg = _JLMS_PAYS_CHANGED_PAY_STATUS . ' <b style="color:#333333 ">' . $status . '</b>. ' . (strtolower($status) == 'completed' ? str_replace('{username}', $username, _JLMS_PAYS_YOU_WANT_SUBS_USR) : str_replace('{username}', $username, _JLMS_PAYS_YOU_WANT_DEL_USR));
            $app->enqueueMessage($msg);
        }
        ?>
				
				<table width="100%" border="0" class="adminlist">
					<tr>
						<td colspan="4"><b><?php 
        echo _JLMS_PAYS_COURSES_IN_THE_SUBS;
        ?>
:</b></td>
					</tr>
					<tr>
						<th width="15px" align="center">#</th>
						<th width="20px" align="center"><input type="checkbox" name="toggle" checked value="" onclick="checkAll(<?php 
        echo count($courses_in);
        ?>
);" /></th>
						<th align="left"><?php 
        echo _JLMS_PAYS_COURSE_NAME;
        ?>
</th>
						<th></th>
					</tr>
					<?php 
        $k = 0;
        for ($i = 0, $n = count($courses_in); $i < $n; $i++) {
            $row = $courses_in[$i];
            $checked = joomla_lms_adm_html::jlms_idBox($i, $row->id);
            ?>
						<tr class="<?php 
            echo "row{$k}";
            ?>
">
							<td align="center"><?php 
            echo $i + 1;
            ?>
</td>
							<td align="center"><?php 
            echo $checked;
            ?>
</td>
							<td align="left">
								<?php 
            echo $row->course_name;
            ?>
							</td>
							<td></td>
						</tr>
						<?php 
            $k = 1 - $k;
        }
        ?>
				</table>			
			</td>
		</tr>
	</table>
	<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="old_status" value="<?php 
        echo $old_status;
        ?>
" />
	<input type="hidden" name="hidemainmenu" value="0" />
	<input type="hidden" name="boxchecked" value="<?php 
        echo count($courses_in);
        ?>
" />
	<input type="hidden" name="id" value="<?php 
        echo $id;
        ?>
" />	
	</form>
	<?php 
    }