echo "<h3>Import a Cart</h3>\n"; echo "<p>This page imports <b>carts.</b> K? Or go <a href='" . $_SERVER['HTTP_REFERER'] . "'>back</a>...</p>\n"; echo "<div id='contents'>"; echo "<b>Cart Path:</b> " . $cartPath . " <br /><br />"; echo "<form method='POST' action='import_submit_cart.php'>"; echo "<table><tr><th></th><th></th>"; //the hidden input should take care of the file extension (in case it's not mp3) echo "<tr><td>Title</td><td><input type='text' name='cartName' value='{$cartName['0']}' /></td></tr> <input type='hidden' name='cartExt' value='{$cartName['1']}' />"; echo "<tr><td>Issuer</td><td><input type='text' name='cartIssuer' value='' /></td></tr>"; echo "<tr><td>Type</td><td><input type='radio' name='cartType' value='0' />PSA<br /><input type='radio' name='cartType' value='1' />Underwriting<br /><input type='radio' name='cartType' value='3' />Promotion<br /><input type='radio' name='cartType' value='2' />Station<br /><input type='radio' name='cartType' value='5' />Other<br /></td></tr>"; echo "<tr><td>Start Date</td>"; echo "<td>"; DateSelector('startDate'); echo "</td></tr>"; echo "<tr><td>End Date</td>"; echo "<td>"; DateSelector('endDate'); echo "<input type='checkbox' name='noEndDate' />No End Date</td></tr>"; echo "<tr><td>Start Time: </td><td>"; timeSelect('startTime'); echo "(Leave both the same if all day)</td></tr>"; echo "<tr><td>End Time: </td><td>"; timeSelect('endTime'); echo "</td></tr>"; echo "</table>"; echo "<input type='hidden' name='redirect' value=\"" . urlencode($_SERVER['HTTP_REFERER']) . "\" /><input type='hidden' name='cartPath' value='{$cartPath}' /><input type='hidden' name='filename' value='{$cartGet}' />"; echo "<p><input type='submit' name='submit' value='Submit'></form>"; $netTime = microtime(true) - $time; echo "<p>Current working directory: {$dirCurrent}</p>\n"; echo "<p>Time needed to execute: " . round($netTime, 5) . " seconds\n</p>"; echo "\n</div>\n";
echo $idProjeto; ?> " /> <input type="hidden" name="idPapel" value="10" /> <div class="form-group col-md-2"> <button type="submit" class="btn btn-primary" id="autorizar">Escalar</button> </div> </form> </div> <div class="col-md-6"> <form id="time" action="controles/removeIntegrante.php" method="post"> <div class="form-group"> <label for="inputPapel" class="col-md-2 control-label"><h4>Time</h4></label> <div class="col-md-12" required="required"> <?php timeSelect("idUsuario[]", "time", $idProjeto); ?> </div> </div> <input type="hidden" name="idProjeto" value="<?php echo $idProjeto; ?> " /> <input type="hidden" name="idPapel" value="4" /> <div class="form-group col-md-2"> <button type="submit" class="btn btn-primary" id="autorizar">Remover</button> </div> </form> </div> </div>
<?php echo timeSelect(23, 50); ?> <button id="set-hours" data-rel="back" data-transition="pop" data-theme="a" data-mini="false" onClick="set_hours();" >Set hours</button> </div> <div data-role="popup" data-overlay-theme="b" id="punchin" style="padding:10px;"> <p>Set punch-in time</p> <?php echo timeSelect(12, 25); ?> <button id="set-in-time" data-rel="back" data-transition="pop" data-theme="a" data-mini="false" onClick="punchin_selected();" >Set time</button> </div> <div data-role="popup" id="punchout" style="padding:10px;"> <p>Set punch-out time</p> <?php echo timeSelect(12, 25); ?> <button id="set-out-time" data-rel="back" data-transition="pop" data-theme="a" data-mini="false" onClick="punchout_selected();" >Set time</button> </div> <div data-role="popup" data-overlay-theme="b" id="options" style="padding:10px;"> <p>Set Options</p> <div data-role="controlgroup" data-type="vertical"> <label for="perdiam-o">Per-diam:O</label><input id="perdiam-o" value="Per-diam-o" data-theme="a" type="checkbox"> <label for="perdiam-e">Per-diam:E</label><input id="perdiam-e" value="Per-diam-e" data-theme="a" type="checkbox"> <label for="holiday">Holiday Pay</label> <input id="holiday" value="Holiday Pay" data-theme="a" type="checkbox"> <label for="vacation">Vacation</label> <input id="vacation" value="Vacation" data-theme="a" type="checkbox"> </div> <input id="mileage" value="Mileage" data-theme="a" type="text" > <input id="traveltime" value="Travel Time" data-theme="a" type="text" > <button id="set-options" data-rel="back" data-transition="pop" data-theme="a" data-mini="false" onClick="options_selected();" >Set Options</button> </div>
$time_in_minute = $time_in_arr[1]; $time_out_hour = $time_out_arr[0]; $time_out_minute = $time_out_arr[1]; } echo '<div class="form-group field-job-time_in required">'; echo '<label class="control-label" for="job-time_in">Time In</label><br />'; echo timeSelect('Job[time_in_hour]', true, $time_in_hour); echo ' '; echo timeSelect('Job[time_in_minute]', false, $time_in_minute); echo '<div class="help-block"></div>'; echo '</div>'; echo '<div class="form-group field-job-time_in required">'; echo '<label class="control-label" for="job-time_out">Time Out</label><br />'; echo timeSelect('Job[time_out_hour]', true, $time_out_hour); echo ' '; echo timeSelect('Job[time_out_minute]', false, $time_out_minute); echo '<div class="help-block"></div>'; echo '</div>'; ?> <?php $hours_arr = array(); for ($i = 0; $i <= 23; $i++) { array_push($hours_arr, $i); } $min_arr = array(); for ($i = 0; $i <= 55; $i += 5) { array_push($min_arr, $i); } ?> <!-- <?php echo $form->field($model, 'time_in')->textInput();