function page1($id = '') { $time = $date = ''; $worc = mysql_fetch_assoc(mysql_query("SELECT * FROM `person_work_graphic` WHERE id='{$id}'")); if (empty($worc[start])) { $date = date('Y-m-d'); } else { $date = date('Y-m-d', strtotime($worc[start])); $time = array('start' => date('H:i:00', strtotime($worc[start])), 'end' => date('H:i:00', strtotime($worc[end]))); } return ' <div id="dialog-form"> <fieldset > <legend>ძირითადი ინფორმაცია</legend> <table> <tr> <th>აირჩიეთ მომხმარებელი</th> <th width="20px"></th> <th>აირჩიეთ თარიღი</th> <th width="20px"></th> <th>აირჩიეთ გრაფიკი</th> </tr> <tr> <td> <select class="idle" id="user">' . getusers($worc[person_id]) . ' </select> </td> <td></td> <td><input id="date" value="' . $date . '" class="idle date"/> </td> <td></td> <td> <select class="idle" id="graphic_time"> ' . getgraphic($time) . '</select> </td> </tr> </table> </fieldset > </div> <input type="hidden" id="id" value=' . $_REQUEST[id] . '>'; }
function page1() { return ' <div id="dialog-form"> <fieldset > <legend>ძირითადი ინფორმაცია</legend> <table> <tr> <th>აირჩიეთ მომხმარებელი</th> <th width="20px"></th> <th>აირჩიეთ თარიღი</th> <th width="20px"></th> <th>აირჩიეთ გრაფიკი</th> </tr> <tr> <td> <select class="idle" id="user">' . getusers() . ' </select> </td> <td></td> <td><input id="date" class="idle date"/></td> <td></td> <td> <select class="idle" id="graphic_time"> ' . getgraphic() . '</select> </td> </tr> </table> </fieldset > </div> <input type="hidden" id="id" value=' . $_REQUEST[id] . '>'; }