Ejemplo n.º 1
0
				$number		= get_number($Usage['dst']);
				$rate		= get_rate($number, $uext);
				$duration	= $Usage['duration'];
				$billsec 	= $Usage['billsec'];
				$charge		= get_charge($rate, $billsec);
				if ($rate == "ICM") { $callin++; $timein = $timein + $billsec; $costin = $costin + $charge; }
				else if ($rate == "INT") { $callout++; $timeout = $timeout + $billsec; $costout = $costout + $charge; }
				else if ($rate == "CNF") { $callcon++; $timecon = $timecon + $billsec; $costcon = $costcon + $charge; }
				else if ($rate == "LDC") { $calllong++; $timelong = $timelong + $billsec; $costlong = $costlong + $charge; }
				$chargein	= get_format($costin);
				$chargeout	= get_format($costout);
				$chargelong	= get_format($costlong);
				$chargecon	= get_format($costcon);
				$chargettl	= get_format($costin + $costout + $costlong + $costcon);
				$chargetax	= get_format(($costin + $costout + $costlong + $costcon) * 0.13);
				$chargefnal	= get_format(($costin + $costout + $costlong + $costcon) * 1.13);
	
				
				if ($stt % 2) $Table_Class = "TableB"; else $Table_Class = "TableA";
				$CALL_LIST .= '<tr align="center">
								<td class="'.$Table_Class.'">'.$count.'</td>
								<td class="'.$Table_Class.'">'.$date.'</td>
								<td class="'.$Table_Class.'">'.$time.'</td>
								<td class="'.$Table_Class.'">'.$number.'</td>
								<td class="'.$Table_Class.'">'.$rate.'</td>
								<td class="'.$Table_Class.'">'.$billsec.'</td>
								<td class="'.$Table_Class.'">$'.$charge.'</td>
							  </tr>';
			}
			$CALL_LIST .='</table>';
			$billing = "class='active'";
Ejemplo n.º 2
0
                <a href="#">
                    <div id="formatnav"class="session-filter"><h2><strong>Format</strong></h2></div>
                </a>
            </div>
        </nav>


        <div style="width:65%;" class="list-container">

            <?php 
foreach ($workshopList as $workshop) {
    $workshop_id = $workshop['wkshp_id'];
    $workshop_name = $workshop['wkshp_nme'];
    $workshop_desc = $workshop['wkshp_desc'];
    $format_id = $workshop['format_id'];
    $format = get_format($format_id);
    $format_name = $format['format_name'];
    ?>

                <div class="mentor" id="workshop">
                    <a class="info" style="position: relative; z-index: 90; color: #555555;" onclick="popup('#B<?php 
    echo $workshop['wkshp_id'];
    ?>
,#P<?php 
    echo $workshop['wkshp_id'];
    ?>
')"><h4 class="info_icon">i</h4></a>
                    <div class="session-filter workshop_name" onclick="javascript:location.href='./index.php?workshop_id=<?php 
    echo $workshop_id;
    ?>
&action=show_modify_workshop'"><h2><?php 
Ejemplo n.º 3
0
<?php

access_ensure_project_level(plugin_config_get('serials_view_threshold'));
header('Content-Type: application/json');
$g_mantis_serials_customer = plugin_table('customer');
$g_mantis_serials_assembly = plugin_table('assembly');
$g_mantis_serials_format = plugin_table('format');
$g_mantis_serials_serial = plugin_table('serial');
$p_assembly_id = gpc_get_string('assembly_id');
function get_format($p_assembly_id)
{
    $t_assembly_id = $p_assembly_id;
    global $g_mantis_serials_format;
    $query = "SELECT format, format_id, format_example\n\t\t\t\tFROM {$g_mantis_serials_format}\n\t\t\t\tWHERE assembly_id='{$t_assembly_id}'";
    $result = mysql_query($query) or die(mysql_error());
    //Create an array
    $json_response = array();
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        $row_array['format'] = $row['format'];
        $row_array['format_id'] = $row['format_id'];
        $row_array['format_example'] = $row['format_example'];
        //push the values in the array
        array_push($json_response, $row_array);
    }
    $jsonString = json_encode($json_response);
    echo $jsonString;
}
echo get_format($p_assembly_id);
Ejemplo n.º 4
0
    <form enctype="multipart/form-data" action="<?php 
    print 'http://' . $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"];
    ?>
" method="POST">
        <input type="hidden" name="MAX_FILE_SIZE" value="1048576" />
        Send this file: <input name="userfile" type="file" />
        <input type="submit" value="Send File" />
    </form>
    <?php 
} else {
    $dtafilestring = isset($dtafilestring) ? $dtafilestring : file_get_contents($_FILES["userfile"]["tmp_name"]);
    if (!$dtafilestring) {
        print "<p class='status'>Fehler: Kann DTA-Datei nicht lesen...</p>" . "</body></html>";
        die;
    }
    switch (get_format($dtafilestring)) {
        case "DTAZV":
            print "<p class='status'>Lese DTAZV-Datei ...</p>";
            $dta = new DTAZV($dtafilestring);
            break;
        case "DTA":
            print "<p class='status'>Lese DTA-Datei ...</p>";
            $dta = new DTA($dtafilestring);
            break;
        default:
            print "<p class='error'>Datei nicht in DTA oder DTAZV-Format ...</p></body></html>";
            die;
    }
    $errors = $dta->getParsingErrors();
    if (count($errors)) {
        print "<h2>Fehler</h2>";