public function showDBValue(&$data, $keylink) { $value = ""; $this->upload_handler->tkeys = $keylink; $filesArray = $this->getFilesArray($data[$this->field]); $showThumbnails = $this->container->pSet->showThumbnail($this->field); $isExport = $this->container->pageType == PAGE_EXPORT || $this->container->forExport != ''; if ($showThumbnails) { $zoomboxRand = rand(11111, 99999); } foreach ($filesArray as $file) { $userFile = $this->upload_handler->buildUserFile($file); if (!$isExport) { $value .= $value != "" ? "</br>" : ""; if ($showThumbnails && $userFile["thumbnail_url"] != "" && CheckImageExtension($file["name"])) { $value .= "<a target=_blank href=\"" . runner_htmlspecialchars($userFile["url"]) . "\" class='zoombox zgallery" . $zoomboxRand . "'><img border='0'"; if ($this->is508) { $value .= " alt=\"" . runner_htmlspecialchars($userFile["name"]) . "\""; } $value .= " src=\"" . runner_htmlspecialchars(GetRootPathForResources($userFile["thumbnail_url"])) . "\" /></a>"; } else { if ($this->container->pSet->showIcon($this->field)) { $value .= '<a href="' . runner_htmlspecialchars($userFile["url"]) . '"><img style="vertical-align: middle;" src="' . GetRootPathForResources('images/icons/' . $this->getFileIconByType($file["name"], $file["type"])) . '" /></a>'; } } } if ($this->container->pSet->showCustomExpr($this->field)) { $value .= fileCustomExpression($file, $data, $this->field, $this->container->pageType); } else { if ($isExport) { $value .= ($value != "" ? ", " : "") . $file["usrName"]; } else { if ($showThumbnails && $userFile["thumbnail_url"] != "" && CheckImageExtension($file["name"]) && $value != "") { $value .= "<br />"; } $label = runner_htmlspecialchars($file["usrName"] != "" ? $file["usrName"] : $file["name"]); if ($this->searchHighlight) { $label = $this->highlightSearchWord($label, true, ""); } $value .= '<a dir="LTR" href="' . runner_htmlspecialchars($userFile["url"]) . '">' . $label . '</a>'; } } if ($this->container->pSet->showFileSize($this->field)) { $fileSizeAndUnit = $this->getFileSizeAndUnits($file["size"]); $value .= " " . str_format_number(round($fileSizeAndUnit["size"], 2)) . " " . $this->sizeUnits[$fileSizeAndUnit["unitIndex"]]; } } return $value; }
public function showDBValue(&$data, $keylink) { $result = "<img src=\""; $imgSrc = "images/check_"; if ($this->getHostPageDbType() == nDATABASE_PostgreSQL) { $trueCondition = $data[$this->field] == "t" || $data[$this->field] != 0 && $data[$this->field] != ""; } else { $trueCondition = $data[$this->field] != 0; } $imgSrc .= $trueCondition ? "yes" : "no"; $result .= GetRootPathForResources($imgSrc . ".gif") . "\" border=0"; if (isEnableSection508()) { $result .= " alt=\" \""; } $result .= ">"; return $result; }
if ($message) { $xt->assign("message_block", true); $xt->assign("message", "<div class='message rnr-error'>" . $message . "</div>"); } $pageObject->body["begin"] .= GetBaseScriptsForPage(false); $pageObject->body["begin"] .= "<form method=\"post\" action='" . GetTableLink("login") . "' id=\"form1\" name=\"form1\">\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"btnSubmit\" value=\"Login\">"; $pageObject->body["end"] .= "</form>"; $pageObject->addCommonJs(); // button handlers file names //fill jsSettings and ControlsHTMLMap $pageObject->fillSetCntrlMaps(); $pageObject->body['end'] .= '<script>'; $pageObject->body['end'] .= "window.controlsMap = " . my_json_encode($pageObject->controlsHTMLMap) . ";"; $pageObject->body['end'] .= "window.viewControlsMap = " . my_json_encode($pageObject->viewControlsHTMLMap) . ";"; $pageObject->body['end'] .= "window.settings = " . my_json_encode($pageObject->jsSettings) . ";</script>"; $pageObject->body["end"] .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/runnerJS/RunnerAll.js") . "\"></script>"; $pageObject->body["end"] .= '<script>' . $pageObject->PrepareJS() . "</script>"; $pageObject->addButtonHandlers(); $xt->assignbyref("body", $pageObject->body); $xt->assign("username_label", true); $xt->assign("password_label", true); $xt->assign("remember_password_label", true); if (isEnableSection508()) { $xt->assign_section("username_label", "<label for=\"username\">", "</label>"); $xt->assign_section("password_label", "<label for=\"password\">", "</label>"); $xt->assign_section("remember_password_label", "<label for=\"remember_password\">", "</label>"); } if ($globalEvents->exists("BeforeShowLogin")) { $globalEvents->BeforeShowLogin($xt, $pageObject->templatefile, $pageObject); } // submit on popup login page
//array of params for classes $params = array("id" =>$id, "pageType" => PAGE_REMIND); $params['xt'] = &$xt; $params["tName"]= NOT_TABLE_BASED_TNAME; $params["templatefile"] = "remind.htm"; $params["needSearchClauseObj"] = false; $pageObject = new RemindPasswordPage($params); $pageObject->init(); $pageObject->addCommonJs(); $pageObject->fillSetCntrlMaps(); $pageObject->body["end"] .= "<script>"; $pageObject->body['end'] .= "window.controlsMap = ".my_json_encode($pageObject->controlsHTMLMap).";"; $pageObject->body['end'] .= "window.viewControlsMap = ".my_json_encode($pageObject->viewControlsHTMLMap).";"; $pageObject->body['end'] .= "window.settings = ".my_json_encode($pageObject->jsSettings).";</script>"; $pageObject->body['end'] .= "<script language=\"JavaScript\" src=\"".GetRootPathForResources("include/runnerJS/RunnerAll.js")."\"></script>\r\n"; $pageObject->body["end"] .= "<script>".$pageObject->PrepareJS()."</script>"; $pageObject->addButtonHandlers(); $xt->assign("closewindow_attrs", 'style="display:none" id="closeWindowRemind"'); $isUseCaptcha = false; $pageObject->isCaptchaOk = 1; $onFly = postvalue("onFly"); if( !$onFly ) $pageObject->assignFormFooterAndHeaderBricks( true ); if($onFly == 2) $id = 1;
} $includes .= ' <link rel="stylesheet" href="' . GetRootPathForResources("include/css/jquery.ui.all.css") . '" type="text/css" media="screen"> <link rel="stylesheet" href="' . GetRootPathForResources("include/css/stylesheet.css") . '" type="text/css" media="screen"> <link rel="stylesheet" href="' . GetRootPathForResources("include/fancybox/jquery.fancybox.css?v=2.0.4") . '" type="text/css" media="screen"> <script type="text/javascript" src="' . GetRootPathForResources("include/js/jquery-ui.custom.js") . '"></script> <script type="text/javascript" src="' . GetRootPathForResources("include/js/jquery.fancybox.pack.js?v=2.0.4") . '"></script> <script type="text/javascript" src="' . GetRootPathForResources("include/js/jquery.easing.js") . '"></script> <script type="text/javascript" src="' . GetRootPathForResources("include/js/jquery.cookie.js") . '"></script> '; if ($editmode) $includes .= '<script type="text/javascript" src="' . GetRootPathForResources("include/js/actionscript.js") . '"></script>'; $includes .= ' <script type="text/javascript"> var bSelected = false, TEXT_FIRST = "First", TEXT_PREVIOUS = "Previous", TEXT_NEXT = "Next", TEXT_LAST = "Last", defURL = "' . GetTableLink("menu") . '"; function GetGotoPageUrlString(nPageNumber,sUrlText){ return \'<a href="JavaScript:GotoPage(\'+nPageNumber+\');" style="text-decoration: none;">\'+sUrlText+\'</a>\'; } function WritePagination(mypage, maxpages, id){
/** * */ public function doCommonAssignments() { $this->xt->assign("id", $this->id); $this->xt->assign("left_block", true); if ($this->crossTable) { $this->xt->assign("cross_controls", true); $this->body["begin"] .= '<script type="text/javascript" src="' . GetRootPathForResources("include/crosstable.js") . '"></script>'; } $this->body["begin"] .= GetBaseScriptsForPage($this->isDisplayLoading); if (!isMobile()) { $this->body["begin"] .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; } // assign body end in such way, to prevent collisions with flyId increment $this->body['end'] = array(); AssignMethod($this->body['end'], "assignBodyEnd", $this); $this->xt->assignbyref('body', $this->body); if ($this->isDynamicPerm && IsAdmin()) { $this->xt->assign("adminarea_link", true); $this->xt->assign("adminarealink_attrs", "id=\"adminArea" . $this->id . "\""); } $this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false); $this->xt->assign("changepwdlink_attrs", "onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\""); //set the Search panel $this->xt->assign("searchPanel", true); if ($this->isShowMenu()) { $this->xt->assign("menu_block", true); } if (isMobile()) { $this->xt->assign('tableinfomobile_block', true); } $allow_search = true; $allow_export = true; $this->xt->assign("toplinks_block", $allow_search); $this->xt->assign("asearch_link", $allow_search); $this->xt->assign("print_link", $allow_export); if (!$this->crossTable) { $this->xt->assign("printall_link", $allow_export && $this->arrReport['countRows'] > $this->pageSize && $this->pageSize > 0); } $this->xt->assign("export_link", $allow_export); $this->xt->assign("printlink_attrs", "id=print_" . $this->id . " href='#'"); $this->xt->assign("printalllink_attrs", "id=printAll_" . $this->id . " href='#'"); $this->xt->assign("excellink_attrs", "id=export_to_excel" . $this->id . " href='#'"); $this->xt->assign("wordlink_attrs", "id=export_to_word" . $this->id . " href='#'"); $this->xt->assign("pdflink_attrs", "id=export_to_pdf" . $this->id . " href='#'"); $this->xt->assign("prints_block", $allow_export && ($this->crossTable || $this->arrReport['countRows'] > 0)); $this->xt->assign("advsearchlink_attrs", "id=\"advButton" . $this->id . "\""); if (!$this->crossTable && $allow_search && count($this->arrGroupsPerPage)) { $this->xt->assign("recordspp_block", true); $this->createPerPage(); } $this->xt->assign("grid_block", $allow_search); }
/** * */ public function prepareWordOrExcelTemplate($contents) { $pos1 = 0; while ($pos1 !== false) { $pos1 = stripos($contents, "<link ", $pos1); if ($pos1 !== false) { $pos2 = strpos($contents, ">", $pos1); if (!$pos2 == false) { $contents = substr($contents, 0, $pos1) . substr($contents, $pos2 + 1); } } } $contents = str_ireplace("<img src=\"/" . GetRootPathForResources("images/spacer.gif") . "\">", "", $contents); $contents = str_ireplace("<img src=\"/" . GetRootPathForResources("images/spacer.gif") . "\"/>", "", $contents); $contents = str_ireplace("<img src=\"@webRootPath/images/spacer.gif\" />", "", $contents); // .net template compatibility return $contents; }
pluginspage="http://www.adobe.com/go/getflashplayer" src="' . GetRootPathForResources("libs/swf/Preloader.swf") . '" width="100%" height="100%" id="' . runner_htmlspecialchars(postvalue('cname')) . '" name="' . runner_htmlspecialchars(postvalue('cname')) . '" bgColor="#FFFFFF" allowScriptAccess="always" flashvars="swfFile=' . GetTableLink("dchartdata") . '%3Fcname%3D' . runner_htmlspecialchars(postvalue('cname')) . '%26ctype%3D' . $chrt_array['chart_type']['type'] . '" /> </object> </noscript> <script type="text/javascript" language="javascript" src="' . GetRootPathForResources("libs/js/AnyChartHTML5.js") . '"></script> <script type="text/javascript" language="javascript"> //<![CDATA[ AnyChart.renderingType = anychart.RenderingType.FLASH_PREFERRED; var chart = new AnyChart("' . GetRootPathForResources("libs/swf/AnyChart.swf") . '?v=5.1.2.5r35942", "' . GetRootPathForResources("libs/swf/Preloader.swf") . '?v=5.1.2.5r35942"); chart.width = "800"; chart.height = "640"; var xmlFile = "' . GetTableLink("dchartdata", "", 'cname=' . jsreplace(runner_htmlspecialchars(postvalue('cname')))) . '"; xmlFile += "&ctype=' . $chrt_array['chart_type']['type'] . '&q=' . postvalue("q") . '"; chart.setXMLFile(xmlFile); chart.write();'; $refresh = "0"; if ($chrt_array["appearance"]["autoupdate"] == "true") $refresh = $chrt_array["appearance"]["update_interval"] * 60000; if ($refresh <> "0" && !isMobile()) $show_dchart.='setInterval("refreshChart()",' . $refresh . ');'; $show_dchart.='function refreshChart() {
function buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data) { parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data); $disp = ""; $strfilename = ""; if ($mode == MODE_EDIT || $mode == MODE_INLINE_EDIT) { $value = $this->connection->stripSlashesBinary($value); $itype = SupposeImageType($value); if ($itype) { if ($this->pageObject->pSetEdit->showThumbnail($this->field)) { $disp = "<a target=_blank"; $disp .= " href=\"" . GetTableLink("imager", "", "table=" . GetTableURL($this->pageObject->tName) . "&" . $this->iquery . "&rndVal=" . rand(0, 32768)) . "\" class='zoombox'>"; $disp .= "<img id=\"image_" . GoodFieldName($this->field) . "_" . $this->id . "\" name=\"" . $this->cfield . "\" border=0"; if ($this->is508) { $disp .= " alt=\"Image from DB\""; } $disp .= " src=\"" . GetTableLink("imager", "", "table=" . GetTableURL($this->pageObject->tName) . "&field=" . rawurlencode($this->pageObject->pSetEdit->getStrThumbnail($this->field)) . "&alt=" . rawurlencode($this->field) . $this->keylink . "&rndVal=" . rand(0, 32768)) . "\">"; $disp .= "</a>"; } else { $disp = '<img id="image_' . GoodFieldName($this->field) . '_' . $this->id . '" name="' . $this->cfield . '"'; if ($this->is508) { $disp .= ' alt="Image from DB"'; } $disp .= ' border=0 src="' . GetTableLink("imager", "", 'table=' . GetTableURL($this->pageObject->tName) . '&' . $this->iquery . "&src=1&rndVal=" . rand(0, 32768)) . '">'; } } else { if (strlen($value)) { $disp = '<img id="image_' . GoodFieldName($this->field) . '_' . $this->id . '" name="' . $this->cfield . '" border=0 '; if ($this->is508) { $disp .= ' alt="file"'; } $disp .= ' src="' . GetRootPathForResources("images/file.gif") . '">'; } } // filename if ($this->format == EDIT_FORMAT_DATABASE_FILE && !$itype && strlen($value)) { if (!($filename = @$data[$this->pageObject->pSetEdit->getFilenameField($this->field)])) { $filename = "file.bin"; } $disp = '<a href="' . GetTableLink("getfile", "", 'table=' . GetTableURL($this->pageObject->tName) . '&filename=' . runner_htmlspecialchars($filename) . '&' . $this->iquery) . '".>' . $disp . '</a>'; } // filename edit if ($this->format == EDIT_FORMAT_DATABASE_FILE && $this->pageObject->pSetEdit->getFilenameField($this->field)) { if (!($filename = @$data[$this->pageObject->pSetEdit->getFilenameField($this->field)])) { $filename = ""; } if ($mode == MODE_INLINE_EDIT) { $strfilename = '<br><label for="filename_' . $this->cfieldname . '">' . "Filename" . '</label> <input type="text" ' . $this->inputStyle . ' id="filename_' . $this->cfieldname . '" name="filename_' . $this->cfieldname . '" size="20" maxlength="50" value="' . runner_htmlspecialchars($filename) . '">'; } else { $strfilename = '<br><label for="filename_' . $this->cfieldname . '">' . "Filename" . '</label> <input type="text" ' . $this->inputStyle . ' id="filename_' . $this->cfieldname . '" name="filename_' . $this->cfieldname . '" size="20" maxlength="50" value="' . runner_htmlspecialchars($filename) . '">'; } } if (strlen($value)) { $strtype = '<br><input id="' . $this->ctype . '_keep" type="Radio" name="' . $this->ctype . '" value="file0" checked class="rnr-uploadtype">' . "Keep"; if (strlen($value) && !$this->pageObject->pSetEdit->isRequired($this->field)) { $strtype .= '<input id="' . $this->ctype . '_delete" type="Radio" name="' . $this->ctype . '" value="file1" class="rnr-uploadtype">' . "Delete"; } $strtype .= '<input id="' . $this->ctype . '_update" type="Radio" name="' . $this->ctype . '" value="file2" class="rnr-uploadtype">' . "Update"; } else { $strtype = '<input id="' . $this->ctype . '_update" type="hidden" name="' . $this->ctype . '" value="file2" class="rnr-uploadtype">'; } } else { // if Add mode $strtype = '<input id="' . $this->ctype . '" type="hidden" name="' . $this->ctype . '" value="file2">'; if ($this->format == EDIT_FORMAT_DATABASE_FILE && $this->pageObject->pSetEdit->getFilenameField($this->field)) { $strfilename = '<br><label for="filename_' . $this->cfieldname . '">' . "Filename" . '</label> <input type="text" ' . $this->inputStyle . ' id="filename_' . $this->cfieldname . '" name="filename_' . $this->cfieldname . '" size="20" maxlength="50">'; } } if ($mode == MODE_INLINE_EDIT && $this->format == EDIT_FORMAT_DATABASE_FILE) { $disp = ""; } echo $disp . $strtype; if (($mode == MODE_EDIT || $mode == MODE_INLINE_EDIT) && strlen($value)) { echo '<br>'; } echo '<input type="File" ' . $this->inputStyle . ' id="' . $this->cfield . '" ' . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 ? 'alt="' . $this->strLabel . '" ' : '') . ' name="' . $this->cfield . '" >' . $strfilename; echo '<input type="Hidden" id="notempty_' . $this->cfieldname . '" value="' . (strlen($value) ? 1 : 0) . '">'; $this->buildControlEnd($validate); }
public function showDBValue(&$data, $keylink) { if ($data[$this->field] == '') { return ''; } $this->upload_handler->tkeys = $keylink; $resultValues = array(); $arBigThumbnails = array(); $zoomboxRand = rand(11111, 99999); $filesArray = $this->getFilesArray($data[$this->field]); foreach ($filesArray as $imageFile) { $userFile = $this->upload_handler->buildUserFile($imageFile); if ($this->container->pageType == PAGE_EXPORT || $this->container->forExport != '') { $resultValues[] = $userFile["name"]; continue; } if (!CheckImageExtension($imageFile["name"])) { $resultValues[] = '<a href="' . runner_htmlspecialchars($userFile["url"]) . '">' . $userFile["name"] . '</a>'; continue; } $userFile["url"] .= "&nodisp=1"; if ($userFile["thumbnail_url"] != "") { $userFile["thumbnail_url"] .= "&nodisp=1"; } $imageValue = ''; $divSize = ''; $divBigThumbnailsSize = ''; $hasThumbnail = false; $imagePath = $this->getImagePath($imageFile["name"]); $hasBigImage = myfile_exists($imagePath); if ($this->showThumbnails) { $thumbPath = $this->getImagePath($imageFile["thumbnail"]); $hasThumbnail = myfile_exists($thumbPath); } if ($this->showThumbnails) { if ($hasThumbnail) { $imageValue .= '<img border="0"'; if ($this->is508) { $imageValue .= ' alt="' . runner_htmlspecialchars($userFile["name"]) . '"'; } $src = $userFile["thumbnail_url"] != "" ? $userFile["thumbnail_url"] : $userFile["url"]; if ($this->thumbWidth || $this->thumbHeight) { $imageValue .= $this->getSmallThumbnailStyle(); } $imageValue .= ' src="' . runner_htmlspecialchars($src) . '" />'; } else { if ($hasBigImage) { $imageValue .= '<img ' . $this->getImageSizeStyle(true) . ' border="0"'; if ($this->is508) { $imageValue .= ' alt="' . runner_htmlspecialchars($userFile["name"]) . '"'; } $imageValue .= ' src="' . runner_htmlspecialchars($userFile["url"]) . '">'; } } if ($hasBigImage && $imageValue != '') { $href = runner_htmlspecialchars($userFile["url"]); $smallThumbnailStyle = ''; $linkClass = !$this->setOfThumbnails ? "zoombox zgallery" . $zoomboxRand : ''; if ($this->thumbWidth && $this->thumbHeight) { $thumbFileUrl = $hasThumbnail ? $userFile["thumbnail_url"] : $userFile["url"]; $smallThumbnailStyle = $this->getSmallThumbnailStyle($thumbFileUrl, $hasThumbnail); $linkClass .= " background-picture"; } if ($linkClass) { $linkClass = "class='" . $linkClass . "'"; } $imageValue = '<a target="_blank" href="' . $href . '"' . $linkClass . $smallThumbnailStyle . '>' . $imageValue . '</a>'; if ($this->setOfThumbnails) { $bigThumbnailLinkStyle = $this->getBigThumbnailSizeStyles(); $bigThumbnailLink = '<a style="display: none;" href="' . $href . '" ' . ($bigThumbnailLinkStyle ? 'class="zoombox"' : '') . '>'; $bigThumbnailLink .= '<img src="' . $href . '" border="0"'; $bigThumbnailLink .= $this->getImageSizeStyle(true); $bigThumbnailLink .= '/></a>'; if (!$divBigThumbnailsSize) { $divBigThumbnailsSize = 'style="' . $bigThumbnailLinkStyle . '"'; } $arBigThumbnails[] = $bigThumbnailLink; } } } else { if ($hasBigImage) { $imageValue .= "<img"; if ($this->imageWidth) { $divSize = "width: " . $this->imageWidth . "px;"; } if ($this->imageHeight) { $divSize .= "height: " . $this->imageHeight . "px;"; } if ($divSize != "") { $divSize = 'style="' . $divSize . '"'; } $imageValue .= " border=0"; if ($this->is508) { $imageValue .= " alt=\"" . runner_htmlspecialchars($userFile["name"]) . "\""; } $imageValue .= $this->getImageSizeStyle(true) . ' src="' . runner_htmlspecialchars($userFile["url"]) . '">'; } } if ($imageValue != '') { $resultValues[] = $imageValue; } } if (count($resultValues) > 1 || count($resultValues) == 1 && $this->setOfThumbnails) { if ($this->container->pageType == PAGE_EXPORT || $this->container->forExport != '') { return implode(', ', $resultValues); } if ($this->container->pageType == PAGE_PRINT) { return implode('<br />', $resultValues); } for ($i = 0; $i < count($resultValues); $i++) { if ($i == 0) { $resultValues[$i] = '<li>' . $resultValues[$i] . '</li>'; } else { $resultValues[$i] = '<li style="display:none;">' . $resultValues[$i] . '</li>'; } } $divBigThumbnails = ''; if (count($arBigThumbnails)) { $divBigThumbnails = '<div class="big-thumbnails" ' . $divBigThumbnailsSize . '>' . implode('', $arBigThumbnails) . '</div>'; } if (!$divSize && !$this->setOfThumbnails) { $divSize = 'style="' . $this->getBigThumbnailSizeStyles(true) . '"'; } $presudoSlider = '<div class="presudoslider" ' . $divSize . '>' . $divBigThumbnails . '<ul class="viewimage-thumblist" style="list-style: none;">' . implode("", $resultValues) . '</ul>' . $hiddenFields . '</div>'; return '<div style="position:relative;" class="viewImage">' . $presudoSlider . '</div>'; } if (count($resultValues) == 1) { return $resultValues[0]; } return '<img src="' . GetRootPathForResources("images/no_image.gif") . '" />'; }
<img src="'.GetRootPathForResources("images/layout_block.png").'" id="block" border="0" alt="'."Block Layout".'" /> </td> </tr> <tr> <td class="tdimg rl" style="text-align:center"> <img src="'.GetRootPathForResources("images/layout_align.png").'" id="align" border="0" alt="'."Align Layout".'" /> <img src="'.GetRootPathForResources("images/layout_outline.png").'" id="outline" border="0" alt="'."Outline Layout".'" /> </td> </tr>'; } else { $strTemplate=' <tr> <td class="tdimg rl" style="text-align:center"> <img src="'.GetRootPathForResources("images/layout_tabular.png").'" id="stepped" border="0" alt="'."Tabular Layout".'" /> </td> </tr> '; $b_includes .= '<script type="text/javascript">$("img#stepped").addClass("selected");</script>'; } $xt->assign("img_template", $strTemplate); $arr = $_SESSION['webreports']['miscellaneous']; if ( !empty( $arr ) ) { $b_includes .= '<script type="text/javascript"> $(document).ready(function(){ $("td[class*=tdimg] > img").each(function(){ $(this).removeClass("selected");
function GetBaseScriptsForPage($isDisplayLoading, $additionalScripts = "", $customText = "") { $result = ""; $result .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/loadfirst.js") . "\"></script>"; $result .= $additionalScripts; $result .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js") . "\"></script>"; if ($isDisplayLoading) { $result .= "<script type=\"text/javascript\">Runner.runLoading('" . $customText . "');</script>"; } return $result; }
/** * Get the image or file link markup * @param String value * @param String fileName * @param Boolean newUploaderWasUsed * @param Array fileData * @return String */ function getFileOrImageMarkup($value, $fileName, $newUploaderWasUsed, $fileData) { $cachedValue = $value; if ($newUploaderWasUsed) { $finalFilePath = $filePath = $fileData["name"]; } else { $uploadFolder = $this->pageObject->pSetEdit->getUploadFolder($this->field); $filePath = $uploadFolder . $value; $finalUploadFolder = $this->pageObject->pSetEdit->getFinalUploadFolder($this->field); $finalFilePath = $finalUploadFolder . $value; } if (!CheckImageExtension($fileName)) { return "<a target=\"_blank\" href=\"" . GetRootPathForResources(runner_htmlspecialchars($filePath)) . "\">" . runner_htmlspecialchars($fileName) . "</a>"; } $altAttr = $this->is508 ? " alt=\"" . runner_htmlspecialchars($fileName) . "\"" : ""; if (!myfile_exists(getabspath($finalFilePath))) { $filePath = "images/no_image.gif"; } if ($this->pageObject->pSetEdit->showThumbnail($this->field)) { if ($newUploaderWasUsed) { $finalThumbPath = $thumbPath = $fileData["thumbnail"]; } else { $thumbprefix = $this->pageObject->pSetEdit->getStrThumbnail($this->field); $thumbPath = $uploadFolder . $thumbprefix . $fileName; $finalThumbPath = $finalUploadFolder . $thumbprefix . $fileName; } if (substr($thumbPath, 0, 7) != "http://") { if (!myfile_exists(getabspath($finalThumbPath))) { $thumbPath = $filePath; } } // show thumbnail return "<a target=\"_blank\" href=\"" . GetRootPathForResources(runner_htmlspecialchars($filePath)) . "\" class='zoombox zgallery'>" . "<img" . $altAttr . " border=0 src=\"" . GetRootPathForResources(runner_htmlspecialchars($thumbPath)) . "\"></a>"; } $imageValue = $filePath; if ($filePath != "images/no_image.gif" && !$newUploaderWasUsed) { if (filesize($finalUploadFolder . $fileName) > 51200) { $imageValue = "images/icons/jpg.png"; } } $disp = '<img ' . $altAttr . 'src="' . GetRootPathForResources(runner_htmlspecialchars($imageValue)) . '" border=0>'; if ($imageValue != "images/no_image.gif") { $disp = "<a target=\"_blank\" href=\"" . GetRootPathForResources(runner_htmlspecialchars($filePath)) . "\">" . $disp . "</a>"; } return $disp; }
/** * Add js files for page */ function AddJSFile($file,$req1="",$req2="",$req3="") { $rootPath = GetRootPathForResources($file); $this->includes_js[] = $rootPath; if($req1!="") { $this->includes_jsreq[$rootPath] = array(GetRootPathForResources($req1)); } if($req2!="") { $this->includes_jsreq[$rootPath][] = GetRootPathForResources($req2); } if($req3!="") { $this->includes_jsreq[$rootPath][] = GetRootPathForResources($req3); } }
$data = $_connection->query($sql_query)->fetchNumeric(); if (!count($data)) { header("location: " . GetTableLink("webreport")); } else { Reload_Chart(postvalue("cname")); } } include 'include/xtempl.php'; $xt = new Xtempl(); $chrt_array = getChartArray(postvalue("cname")); if (is_wr_project()) { include "include/" . $chrt_array['settings']['short_table_name'] . "_variables.php"; } $show_dchart = '<script type="text/javascript" language="javascript"> //<![CDATA[ var chart = new AnyChart("' . GetRootPathForResources("libs/swf/AnyChart.swf") . '", "' . GetRootPathForResources("libs/swf/Preloader.swf") . '"); chart.width = "780"; chart.height = "570"; var xmlFile = "' . GetTableLink("dchartdata", "", 'cname=' . jsreplace(runner_htmlspecialchars(postvalue('cname')))) . '"; xmlFile += "&ctype=' . $chrt_array['chart_type']['type'] . '"; chart.setXMLFile(xmlFile); chart.write(); //]]> </script>'; $load_flash_player = ' <script type="text/javascript"> var svgSupported = window.SVGAngle != undefined; var str=""; if (!svgSupported) {
$_SESSION["back_to_menu"]="true"; $_SESSION['webreports_oldname']=""; include('include/xtempl.php'); $xt = new Xtempl(); $h_includes = ""; $b_includes = ""; $h_includes .= ' <link rel="stylesheet" href="'.GetRootPathForResources("include/css/jquery-ui.css").'" type="text/css"> <link rel="stylesheet" href="'.GetRootPathForResources("include/css/dstyle.css").'" type="text/css"> <script type="text/javascript" src="'.GetRootPathForResources("include/js/jquery.min.js").'"></script> <script type="text/javascript" src="'.GetRootPathForResources("include/js/jquery.dimensions.pack.js").'"></script> <script type="text/javascript" src="'.GetRootPathForResources("include/js/jquery-ui.js").'"></script> '."\r\n"; $xt->assign("h_includes", $h_includes); $arr_UserGroups = GetUserGroup(); $b_includes .= '<script type="text/javascript">'."\r\n"; $b_includes .= ' $(document).ready(function(){ $("#alert").dialog({ title: "Message", draggable: false, resizable: false, bgiframe: true, autoOpen: false, modal: true,
<td width="10px" style="border:0px"> <div style="height:7px">'; if($disabled=="") $tgFields .='<img src="'.GetRootPathForResources("images/arr_up.jpg").'" onclick="total_td_move(this,\'up\');return false;" style="cursor:pointer">'; $tgFields .='</div> <div style="height:2px"> </div> <div style="height:7px">'; $val_show=""; $val_min=""; $val_max=""; $val_sum=""; $val_avg=""; $val_curr=""; if($disabled=="") { $tgFields .='<img src="'.GetRootPathForResources("images/arr_down.jpg").'" onclick="total_td_move(this,\'down\');return false;" style="cursor:pointer">'; $val_show="val_show"; if($blobDisabled=="") { $val_min="val_min"; $val_max="val_max"; $val_sum="val_sum"; $val_avg="val_avg"; $val_curr="val_curr"; } } $prefix=""; if (is_wr_custom()) $prefix=$_SESSION['webreports']["tables"][0]."_"; if($_SESSION['webreports']['totals'][$prefix.$arr['field']]['curr']=="true") $vf=FORMAT_CURRENCY;