Beispiel #1
0
            	' . _n('Monitor', 'Monitors', 2) . '<br>' . conta(monitors) . '</a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivP(\'printers\')>
            	' . _n('Printer', 'Printers', 2) . '<br>' . conta(printers) . '</a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivN(\'net\')>
            	' . _n('Network', 'Networks', 2) . '<br>' . conta(networkequipments) . '</a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivT(\'phone\')>
            	' . _n('Phone', 'Phones', 2) . '<br>' . conta(phones) . ' </a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivD(\'peripheral\')>
            	' . _n('Device', 'Devices', 2) . '<br>' . conta(peripherals) . ' </a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivS(\'soft\')>
            	' . _n('Software', 'Softwares', 2) . '<br>' . conta(softwares) . '</a></td>
            	
            	<td> <a href="assets.php#" onclick=showDivC(\'cart\')>
            	' . _n('Cartridge', 'Cartridges', 2) . '<br>' . conta1(cartridges) . '</a></td>
            	
            	<td> ' . _n('Consumable', 'Consumables', 2) . '<br>' . conta1(consumables) . ' </td>
            	
            	<td> <a href="assets.php#" onclick=showDivG(\'global\')>
            	' . __('Global') . '<br>' . $global . ' </a></td> ';
?>
	
            </tr>                                 
          </tbody>
        </table>
        </div>
	            	' . _n('Monitor', 'Monitors', 2) . '<br>' . conta(monitors, $sel_ent) . '</a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivP(\'printers\')>
	            	' . _n('Printer', 'Printers', 2) . '<br>' . conta(printers, $sel_ent) . '</a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivN(\'net\')>
	            	' . _n('Network', 'Networks', 2) . '<br>' . conta(networkequipments, $sel_ent) . '</a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivT(\'phone\')>
	            	' . _n('Phone', 'Phones', 2) . '<br>' . conta(phones, $sel_ent) . ' </a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivD(\'peripheral\')>
	            	' . _n('Device', 'Devices', 2) . '<br>' . conta(peripherals, $sel_ent) . ' </a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivS(\'soft\')>
	            	' . _n('Software', 'Softwares', 2) . '<br>' . conta(softwares, $sel_ent) . '</a></td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivC(\'cart\')>
	            	' . _n('Cartridge', 'Cartridges', 2) . '<br>' . conta1(cartridges, $sel_ent) . '</a></td>
	            	
	            	<td> ' . _n('Consumable', 'Consumables', 2) . '<br>' . conta1(consumables, $sel_ent) . ' </td>
	            	
	            	<td> <a href="assets.php#" onclick=showDivG(\'global\')>
	            	' . __('Global') . '<br>' . $global . ' </a></td> ';
?>
	
	            </tr>                                 
	          </tbody>
	        </table>
	        	      	
	<script type="text/javascript">
Beispiel #3
0
<?php

function conta()
{
    $ff = fopen("./newsletter.txt", "r");
    $i = 0;
    while (!feof($ff)) {
        $riga = fgets($ff);
        $i++;
    }
    return $i - 1;
}
echo conta();