} else { echo "<tr>"; echo "<td class='head' align='center' colspan= '3'>" . MARTIN_IS_NUll . "</td>"; echo "</tr>"; } echo "</table>\n"; include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; $pagenav = new XoopsPageNav($Cout, $xoopsModuleConfig['perpage'], $start, "action={$action}&start"); echo '<div style="text-align:right;">' . $pagenav->renderNav() . '</div>'; echo "<br />"; martin_close_collapsable('createtable', 'createtableicon'); echo "<br>"; break; case "hotellist": martin_collapsableBar('createtable', 'createtableicon', _AM_MARTIN_HOTEL_SERVICE_LIST, _AM_MARTIN_HOTEL_SERVICE_LIST); CreateButton(); $HotelServiceRelations = $hotelservice_handler->getHotelServiceRelations($xoopsModuleConfig['perpage'], $start); echo "<table width='100%' cellspacing=1 cellpadding=2 border=0 class = outer>"; echo "<tr>"; echo "<td class='bg3' align='left'><b>" . _AM_MARTIN_HOTEL_NAME . "</b></td>"; echo "<td class='bg3' align='left'><b>" . _AM_MARTIN_SERVICE_NAME . "</b></td>"; echo "<td class='bg3' align='left'><b>" . _AM_MARTIN_SERVICE_PRICES . "</b></td>"; echo "<td width='60' class='bg3' align='center'><b>" . _AM_MARTIN_ACTIONS . "</b></td>"; echo "</tr>"; $Cout = $hotelservice_handler->GetRelationCount(); if (count($HotelServiceRelations) > 0) { foreach ($HotelServiceRelations as $key => $relation) { $modify = "<a href='?action=addhotel&hotel_id={$relation['hotel_id']}&service_id={$relation['service_id']}'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/edit.gif'/></a>"; $delete = "<a href='?action=hoteldel&hotel_id={$relation['hotel_id']}&service_id={$relation['service_id']}'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/icon/delete.gif'/></a>"; echo "<td class='even' align='left'>" . $relation['hotel_name'] . "</td>"; echo "<td class='even' align='left'>" . $relation['service_name'] . "</td>";
echo '<input id = "filter" name = "currentTag" type = "hidden" value = "' . $currentTag . '"/>'; echo '<script type="text/javascript">var currentTag = ' . $currentTag . '</script>'; echo '<script type = "text/javascript"> var currentPageNum = 1 </script>'; $numPages = 0; $groupedPosts = ObtainAllPostsByTypeAndGroup($currentTag); $currentPageNum = 1; echo '<div id = "scripts">'; foreach ($groupedPosts as $group) { $numPages++; echo '<script type = "text/javascript">var page_' . $numPages . '=' . json_encode($group) . '</script>'; } echo '</div>'; echo '<div id = "posters"></div>'; for ($i = 1; $i < $numPages + 1; $i++) { $html = CreateButton($i, false); if ($i == $currentPageNum) { $html = CreateButton($i, true); } echo $html; } ?> <?php // -------------------------------------------------------------------- // BEGIN STANDARD FOOTER // ------------------------------------------------------------------> echo '</form>'; echo GenerateFooter(); echo '<script src="javascript/prototype.js?v=' . VERSION . '"></script>'; echo '<script src="javascript/prototypeHot.js?v=' . VERSION . '"></script>'; echo '<script src="javascript/home.js?v=' . VERSION . '"></script>';
function CreateNavButton($btnText, $url, $attrs = array()) { $attrs['href'] = $url; return CreateButton($btnText, $attrs); }
function rawman_editbox($pic) { // Reading params and settting form fields $par = rawman_mkdir(array(rawman_getpicdir($pic), 'param')) . $pic . '.txt'; $opt = rawman_convparams($par, array('rating' => 0, 'coloring' => 'none', 'wb' => 'camera', 'rotate' => 'none')); if (preg_match('/\\-b\\s+(\\d\\.\\d+)\\b/', $opt['dcraw'], $m)) { _fsine(array('brightness' => $m[1])); } if (IsEmpty($opt['wb']) && preg_match('/\\-a\\b/', $opt['dcraw'], $m)) { $opt['wb'] = 'auto'; } if (preg_match('/\\-gamma\\s+(\\d\\.\\d+)\\b/', $opt['cnvpre'], $m)) { _fsine(array('gamma' => $m[1])); } if (preg_match('/\\-t\\s+(\\d+)\\b/', $opt['dcraw'], $m)) { $opt['rotate'] = $m[1] == 270 ? 'left' : 'right'; } elseif (preg_match('/\\-rotate\\s+(\\d+)\\b/', $opt['cnvpre'], $m)) { $opt['rotate'] = $m[1] == 270 ? 'left' : 'right'; } $arr_ev = array('-2.00', '-1.66', '-1.50', '-1.33', '-1.00', '-0.66', '-0.50', '-0.33', '0.00', '+0.33', '+0.50', '+0.66', '+1.00', '+1.33', '+1.50', '+1.66', '+2.00'); $arr_high = array(0 => '0 - White', 1 => '1 - Pink', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7', 8 => '8', 9 => '9'); _fsine(array('ev' => '+0.33', 'rotate' => $opt['rotate'])); echo ' <form name="editForm">' . CreateHiddenField('balance', $opt['wb']) . rawman_wb($opt['wb'], true) . '<p style="clear:both;"></p> <ul> <li>Ekspozycja: ' . CreateSelectField('ev', $arr_ev, 0) . 'EV</li> <li>Jasność: ' . CreateInputText('brightness', 5) . '</li> <li>Gamma: ' . CreateInputText('gamma', 5) . '</li> <li>Ziarno: ' . CreateInputText('noise', 5) . '</li> <li>Odbłyski: ' . CreateSelectField('highlight', $arr_high) . '</li> </ul> ' . '<p style="clear:both;"></p>' . CreateHiddenField('rotate', $opt['rotate']) . rawman_rotate($opt['rotate'], true) . '<p style="clear:both;"></p>' . CreateButton('preview', 'View', 'onclick="editImg()"') . CreateButton('cancel', 'Cancel', 'onclick="rmSendReq(\'' . rmconf('elem-dir') . '/info\')"') . CreateButton('apply', 'Apply', 'onclick="applyImg()"') . '</form>'; }