Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/include/account/dispTable.php
<?php
if (!isset($oreon))
                exit();

if(isset($error)){ echo $error; return;} //just to be sure
	echo "<table width=100%><tr><td width=13% style=\"text-align: left;\">";
	echo "<b> Print html : ";
	echo "</td>";
	echo "<td>";
	echo "<form  method=\"post\" action=\"include/display/printListUserHTML.php\" id=\"print_form_html\"  target=\"Print html\" >";
	echo ("<input type=\"hidden\" name=\"phpmyprepaid\" value=\"".session_id ()."\">");
        echo("<input type=\"hidden\" name=\"type\" value=\"$Type\">");
	echo("<input type=\"hidden\" name=\"attr\" value=\"$Attribute\">");
	echo("<input type=\"hidden\" name=\"db\" value=\"$dbtable\">");
	$str='';
	foreach($UserPass as $id => $pass ) {
		$str.=$id.',';
	}
	$strf=substr($str,0,strlen($str)-1);
	echo("<input type=\"hidden\" name=\"id\" value=\"$strf\">");
	printf ('<input class="image" type="image" value="submit" name="print_html" id="print_html"  alt="Print html" title="Print html" src="images/html.png" >');
	printf ('</form>');
	echo "</td>";


	echo "<td width=13% style=\"text-align: left;\"><b> Print PDF: ";
	echo "</td>";
	echo "<td>";
	echo "<form  method=\"post\" action=\"include/display/printListUserPDF.php\" id=\"print_form_pdf\"  target=\"Print pdf\" >";
	echo ("<input type=\"hidden\" name=\"phpmyprepaid\" value=\"".session_id ()."\">");
        echo("<input type=\"hidden\" name=\"type\" value=\"$Type\">");
	echo("<input type=\"hidden\" name=\"attr\" value=\"$Attribute\">");
	echo("<input type=\"hidden\" name=\"db\" value=\"$dbtable\">");
	$str='';
	foreach($UserPass as $id => $pass ) {
		$str.=$id.',';
	}
	$strf=substr($str,0,strlen($str)-1);
	echo("<input type=\"hidden\" name=\"id\" value=\"$strf\">");
	printf ('<input class="image" type="image" value="submit" name="print_pdf" id="print_pdf"  alt="Print pdf" title="Print pdf" src="images/pdf.png" >');
	printf ('</form>');
	echo "</td>";


	echo "<td width=14% style=\"text-align: left;\"><b> Print Cards : ";
	echo "</td>";
	echo "<td width=5% style=\"text-align: left;\">";
	echo "<form  method=\"post\" action=\"include/display/printListUserCards.php\" id=\"print_form_cards\"  target=\"Print cards\" >";
	echo ("<input type=\"hidden\" name=\"phpmyprepaid\" value=\"".session_id ()."\">");
        echo("<input type=\"hidden\" name=\"type\" value=\"$Type\">");
	echo("<input type=\"hidden\" name=\"attr\" value=\"$Attribute\">");
	echo("<input type=\"hidden\" name=\"db\" value=\"$dbtable\">");
	$str='';
	foreach($UserPass as $id => $pass ) {
		$str.=$id.',';
	}
	$strf=substr($str,0,strlen($str)-1);
	echo("<input type=\"hidden\" name=\"id\" value=\"$strf\">");
	echo ('<div id="tab_acct_cards"></div>');
	printf ('<input class="image" type="image" value="submit" name="print_cards" id="print_cards"  alt="Print cards" title="Print cards" src="images/tpl.png">');
	echo "</td>";
	echo "<td style=\"text-align: left;\">";
	get_template_html($default_tpl,$loc);
	echo "</td>";
	echo "</tr>";
	echo "</table>";

	print('<br>');
	print "<th><b>All account created of type $Type at the date ".date($dateFormat)."</b></th><br><br>";
	echo ('<table border="1">');
    print('<tr><td class="maincell" width="100px" ><b>Username</td><td class="maincell" width="100px" ><b>Password</td>');
    if ( $buttonID!="CR_subscription_mac") {
        print ('<td class="maincell" width="170px"  \"><b>Validity</td>');
    }
    print ( '</tr>');
	foreach($UserPass as $id => $pass ) {
	               echo("<tr><td style=\"text-align: center; \" class=\"fieldcell\" ><b>"),
		       ($id),
		       ("</b></td><td style=\"text-align: center; \" class=\"fieldcell\" ><b>"),
	               ($pass),
                   ("</td>");
                   if ( $buttonID!="CR_subscription_mac") {
                  echo ("<td style=\"text-align: center; \" class=\"fieldcell\" ><b>"),
		       ($display),
               ("</b></td>");
                   }
	      echo ("</tr>");
	}
	echo('</table>');
?>
										    
Return current item: phpMyPrepaid