?>
</div></td> 
        </tr>
        </table>
        </div></div>
        
        <p>&nbsp;</p>
        
        <div class="moduleBlue"><h1>This Year's Sales (<?php 
echo $thisYear;
?>
)</h1>
        <div class="moduleBody">
        <?php 
foreach ($monthArray as $mo => $month) {
    echo $month . ' ' . $thisYear . ': ' . getSales($thisYear . '-' . $mo) . '<br />';
}
?>
        
        </div></div>
    </td>
    <td width="10px"></td>
    <td>
        <div class="moduleBlue"><h1>Sales by Month</h1>
        <div class="moduleBody">
            <br />
            <form method=post> 
                Year: <input type=text class="activeField" size=6 name=pickYear value="<?php 
echo $_POST[pickYear];
?>
"/>
Exemplo n.º 2
0
    curl_close($handle);
    echo $code . '<br />';
    echo $response;
    return $response;
}
/**
 * "pending" flagged sales is the *new sales
 *
 * usage: 
 * php mygassi-salesexport.php
 * php mygassi-salesexport.php referred_to_karlie
 * php mygassi-salesexport.php payed
 * php mygassi-salesexport.php payed [123 -num of sale]
 */
if (null === ($salesState = $argv[1])) {
    $salesState = "payed";
}
EmailNotification::setSubject("Benachrichtigung über den MyGassi CRON Prozess Salesexport");
if (isset($argv[2])) {
    EmailNotification::add("<span style='color:green'>Der Versand der Bestellung " . $salesState . " (" . $argv[2] . ") ist gestartet.</span>");
    logger("Starting: mygassi-salesexport: " . $salesState . " : " . $argv[2]);
    sendContainer(getSale($argv[2]));
} else {
    EmailNotification::add("<span style='color:green'>Der Versand der Bestellungen (" . $salesState . ") ist gestartet.</span>");
    logger("Starting: mygassi-salesexport: " . $salesState);
    sendContainer(getSales($salesState));
}
EmailNotification::add("<span style='color:green'>Der Versand der Bestellungen ist beendet.</span>");
EmailNotification::send();
logger("Done: mygassi-salesexport");
exit(1);