Location: PHPKode > projects > NOLA > adminglcompanyupd.php
<? include('includes/main.php'); ?>
<?
     echo texttitle(STR_GL_COMPANY_OPTIONS);
     if ($fiscalbeginmonth) { // if the user has submitted info
          checkpermissions('gl');
          $conn->Execute('update glcompany set fiscalbeginmonth='.sqlprep($fiscalbeginmonth).' where id='.sqlprep($active_company));
          $conn->Execute('insert into glcompany (id,fiscalbeginmonth) values ('.sqlprep($active_company).', '.sqlprep($fiscalbeginmonth).')');
          echo textsuccess(STR_COMPANY_OPTIONS_CHANGED_SUCCESSFULLY);
     };
     echo '<form action="adminglcompanyupd.php" method="post"><table><tr><td>';
     $recordSet = &$conn->Execute('select fiscalbeginmonth from glcompany where id='.sqlprep($active_company));
     if (!$recordSet->EOF) $fiscalbeginmonth=$recordSet->fields[0];
     echo STR_FISCAL_BEGIN_MONTH.': <select name="fiscalbeginmonth">';
     for ($i=1;$i<=12;$i++) {
          echo '<option value="'.$i.'"'.checkequal($i,$fiscalbeginmonth," selected").'>'.month2monthlong(num2month($i));
     };
     echo '</select></td></tr></table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form>';
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA