当前位置: 首页>>代码示例>>PHP>>正文


PHP GetTableLink函数代码示例

本文整理汇总了PHP中GetTableLink函数的典型用法代码示例。如果您正苦于以下问题:PHP GetTableLink函数的具体用法?PHP GetTableLink怎么用?PHP GetTableLink使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetTableLink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buildControl

 function buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data)
 {
     parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data);
     $nWidth = $this->pageObject->pSetEdit->getNCols($this->field);
     $nHeight = $this->pageObject->pSetEdit->getNRows($this->field);
     if ($this->pageObject->pSetEdit->isUseRTE($this->field)) {
         $value = $this->RTESafe($value);
         // creating src url
         $browser = "";
         if (@$_REQUEST["browser"] == "ie") {
             $browser = "&browser=ie";
         }
         // add JS code
         echo "<iframe frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" id=\"" . $this->cfield . "\" " . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? "alt=\"" . $this->strLabel . "\" " : "") . "name=\"" . $this->cfield . "\" title=\"Basic rich text editor\" style='";
         if (!isMobile()) {
             echo "width: " . ($nWidth + 1) . "px;";
         }
         echo "height: " . ($nHeight + 100) . "px;'";
         echo " src=\"" . GetTableLink("rte", "", "ptype=" . $this->pageObject->pageType . "&table=" . GetTableURL($this->pageObject->tName) . "&" . "id=" . $this->id . "&" . $this->iquery . $browser . "&" . ($mode == MODE_ADD || $mode == MODE_INLINE_ADD ? "action=add" : '')) . "\">";
         echo "</iframe>";
     } else {
         echo '<textarea id="' . $this->cfield . '" ' . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? 'alt="' . $this->strLabel . '" ' : '') . 'name="' . $this->cfield . '" style="';
         if (!isMobile()) {
             echo "width: " . $nWidth . "px;";
         }
         echo 'height: ' . $nHeight . 'px;">' . runner_htmlspecialchars($value) . '</textarea>';
     }
     $this->buildControlEnd($validate);
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:29,代码来源:TextAreaField.php

示例2: FBgetLoginUrl

 function FBgetLoginUrl($params = array())
 {
     $url = "http://";
     if ($_SERVER["HTTPS"] && $_SERVER["HTTPS"] != "off") {
         $url = "https://";
     }
     $url .= $_SERVER["HTTP_HOST"] . substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1) . GetTableLink("login");
     return $this->fbObj->getLoginUrl(array('display' => 'popup', 'redirect_uri' => $url));
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:9,代码来源:phpfunctions.php

示例3: showDBValue

    public function showDBValue(&$data, $keylink)
    {
        $value = "";
        if (@$data[$this->field] != NULL && $this->container->pageType != PAGE_PRINT) {
            $videoId = 'video_' . GoodFieldName(runner_htmlspecialchars($this->field)) . '_';
            $videoId .= $this->getContainer()->id . "_";
            if ($this->getContainer()->pageType != PAGE_ADD) {
                $videoId .= $this->getContainer()->recId;
            } else {
                $videoId .= postvalue("id");
            }
            $type = 'video/mp4';
            $fileName = 'file.mp4';
            $fileNameF = $this->getContainer()->pSet->getFilenameField($this->field);
            if ($fileNameF) {
                $fileName = $data[$fileNameF];
                if (!$fileName) {
                    $fileName = 'file.mp4';
                } else {
                    $type = getContentTypeByExtension(substr($fileName, strrpos($fileName, '.')));
                }
            }
            $href = GetTableLink("mfhandler", "", "filename=" . $fileName . "&table=" . rawurlencode($this->getContainer()->pSet->_table) . "&field=" . rawurlencode($this->field) . "&pageType=" . $this->getContainer()->pageType . $keylink);
            $vWidth = $this->getContainer()->pSet->getVideoWidth($this->field);
            $vHeight = $this->getContainer()->pSet->getVideoHeight($this->field);
            if ($vWidth == 0) {
                $vWidth = 300;
            }
            if ($vHeight == 0) {
                $vHeight = 200;
            }
            $value .= '
				<div style="width:' . $vWidth . 'px; height:' . $vHeight . 'px;">
				<video class="projekktor" width="' . $vWidth . '" height="' . $vHeight . '" id="' . $videoId . '" type="' . $type . '" src="' . $href . '" >
				</video></div>';
            if ($this->pageObject != null) {
                $this->pageObject->controlsMap['video'][] = $videoId;
            }
        } else {
            $fileNameF = $this->getContainer()->pSet->getFilenameField($this->field);
            if ($fileNameF) {
                $fileName = $data[$fileNameF];
                if (!$fileName) {
                    $value = $fileName;
                }
            }
        }
        return $value;
    }
开发者ID:kcallow,项目名称:MatchMe,代码行数:49,代码来源:ViewDatabaseVideoField.php

示例4: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     $value = "";
     $fileNameF = $this->container->pSet->getFilenameField($this->field);
     if ($fileNameF) {
         $fileName = $data[$fileNameF];
         if (!$fileName) {
             $fileName = "file.bin";
         }
     } else {
         $fileName = "file.bin";
     }
     if (strlen($data[$this->field])) {
         $value = "<a href='" . GetTableLink("getfile", "", "table=" . GetTableURL($this->container->pSet->_table) . "&filename=" . rawurlencode($fileName) . "&field=" . rawurlencode($this->field) . $keylink) . "'>";
         $value .= runner_htmlspecialchars($fileName);
         $value .= "</a>";
     }
     return $value;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:19,代码来源:ViewDatabaseFileField.php

示例5: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     $value = "";
     $title = "";
     $titleField = $this->container->pSet->getAudioTitleField($this->field);
     if ($titleField) {
         $title = runner_htmlspecialchars($data[$titleField]);
     }
     if (@$data[$this->field] != NULL && $this->container->pageType != PAGE_PRINT) {
         if (!$title) {
             $title = "Track.mp3";
         }
         $href = GetTableLink('getfile', '', 'table=' . GetTableURL($this->container->pSet->_table) . '&field=' . rawurlencode($this->field) . $keylink . '&filename=' . $title);
         $link = '<a title="' . $title . '" href="' . $href . '">' . $title . '</a>';
         $value = '<audio controls preload="none" src="' . $href . '">' . $link . '</audio>';
     } else {
         $value = $title;
     }
     return $value;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:20,代码来源:ViewDatabaseAudioField.php

示例6: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     if (!$data[$this->field]) {
         return "";
     }
     $value = "";
     $fileName = 'file.jpg';
     $fileNameF = $this->container->pSet->getFilenameField($this->field);
     if ($fileNameF && $data[$fileNameF]) {
         $fileName = $data[$fileNameF];
     }
     if ($this->showThumbnails) {
         $thumbPref = $this->container->pSet->getStrThumbnail($this->field);
         $hrefBegin = GetTableLink("mfhandler", "", "filename=" . $fileName . "&table=" . rawurlencode($this->container->pSet->_table));
         $hrefEnd = "&nodisp=1&pageType=" . $this->container->pageType . $keylink . "&rndVal=" . rand(0, 32768);
         $linkClass = "zoombox";
         if ($this->thumbWidth && $this->thumbHeight) {
             $hasThumbnail = $thumbPref != "" && strlen($data[$thumbPref]);
             $thumbFileUrl = $hrefBegin . "&field=" . ($hasThumbnail ? rawurlencode($thumbPref) : rawurlencode($this->field)) . $hrefEnd;
             $smallThumbnailStyle = $this->getSmallThumbnailStyle($thumbFileUrl, $hasThumbnail);
             $linkClass .= " background-picture";
         }
         $value .= "<a target=_blank href='" . $hrefBegin . "&field=" . rawurlencode($this->field) . $hrefEnd . "' class='" . $linkClass . "' " . $smallThumbnailStyle . ">";
         $value .= "<img border=0";
         if ($this->is508) {
             $value .= " alt=\"Image from DB\"";
         }
         $value .= " src='" . $hrefBegin . "&field=" . rawurlencode($thumbPref) . $hrefEnd . "'>";
         $value .= "</a>";
     } else {
         $value = "<img";
         if ($this->is508) {
             $value .= " alt=\"Image from DB\"";
         }
         $value .= " border=0";
         $value .= $this->getImageSizeStyle(true) . " src='" . GetTableLink("mfhandler", "", "filename=" . $fileName . "&table=" . rawurlencode($this->container->pSet->_table) . "&field=" . rawurlencode($this->field) . "&nodisp=1" . "&pageType=" . $this->container->pageType . $keylink . "&rndVal=" . rand(0, 32768)) . "'>";
     }
     return $value;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:39,代码来源:ViewDatabaseImageField.php

示例7: elseif

$jscode.="ShowHideControls();";
$body["end"]='<script type="text/javascript">'.$jscode.'</script>';
$xt->assignbyref("body",$body);

$contents_block=array();
$contents_block["begin"]='<form method="POST" ';
if(postvalue('rname'))
{
	$crossAttr="";
	if(postvalue("axis_x")<>"")
		$crossAttr = "&axis_x=".postvalue("axis_x")."&axis_y=".postvalue("axis_y")."&field=".postvalue("field")."&group_func=".postvalue("group_func");
	$contents_block["begin"].='action="'.GetTableLink("dreport").'?rname='.runner_htmlspecialchars(rawurlencode(postvalue("rname"))).$crossAttr.'" ';
}	
elseif (postvalue('cname'))
{
	$contents_block["begin"].='action="'.GetTableLink("dchart").'?cname='.runner_htmlspecialchars(rawurlencode(postvalue("cname"))).'" ';
}	
$contents_block["begin"] .= 'name="editform"><input type="hidden" id="a" name="a" value="advsearch">';
$contents_block["end"] = '</form>';
$xt->assignbyref("contents_block",$contents_block);

$xt->assign("searchbutton_attrs", 'name="SearchButton" onclick="document.forms.editform.submit();"');
$xt->assign("resetbutton_attrs", 'onclick="return ResetControls();"');
$xt->assign("backbutton_attrs", "onclick=\"document.forms.editform.a.value='return'; document.forms.editform.submit();\"");
$xt->assign("conditions_block",true);
$xt->assign("search_button",true);
$xt->assign("reset_button",true);
$xt->assign("back_button",true);
$xt->assign("wr_pagestylepath", $wr_pagestylepath);

$xt->assign("dynamic", "true");
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:31,代码来源:dsearch.php

示例8: GetFieldLabel

 $strLabel = GetFieldLabel("DashboardUsers", "email");
 $message .= $strLabel . ": " . $values["email"] . "\r\n";
 $strLabel = GetFieldLabel("DashboardUsers", "active");
 $message .= $strLabel . ": " . $values["active"] . "\r\n";
 $strLabel = GetFieldLabel("DashboardUsers", "fullname");
 $message .= $strLabel . ": " . $values["fullname"] . "\r\n";
 $strLabel = GetFieldLabel("DashboardUsers", "groupid");
 $message .= $strLabel . ": " . $values["groupid"] . "\r\n";
 $sentMailResults = runner_mail(array('to' => "sdev1@accpick.co.za", 'subject' => "Notification on registering", 'body' => $message));
 if (!count($sentMailResults) || $sentMailResults['mailed']) {
     //	show Registartion successful message
     $pageObject->updatePageLayoutAndCSS('', 'success');
     $pageObject->addCommonJs();
     $pageObject->fillSetCntrlMaps();
     $pageObject->addButtonHandlers();
     $pageObject->body["begin"] .= $includes . "<form method=\"POST\" action=\"" . GetTableLink("login") . "\" name=\"loginform\">\n\t\t\t<input type=\"Hidden\" name=username value=\"" . runner_htmlspecialchars($strUsername) . "\">" . "<input type=\"Hidden\" name=password value=\"" . runner_htmlspecialchars($strPassword) . "\"></form>";
     $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>";
     $xt->assign("registered_block", true);
     $xt->assign("body", $pageObject->body);
     $xt->assign("loginlink_attrs", "onclick=\"document.forms.loginform.submit();return false;\" id=\"ProceedToLogin\"");
     if (postvalue("onFly") == 1) {
         $pageObject->templatefile = GetTemplateName("", "register_success");
         $xt->assign("id", $id);
         $xt->assign("footer", false);
         $xt->assign("header", false);
         $xt->assign("body", true);
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:31,代码来源:register.php

示例9: commonAssign

 /**
  * Add common assign for simple mode on list page
  */
 function commonAssign()
 {
     parent::commonAssign();
     //search permissions
     $searchPermis = $this->permis[$this->tName]['search'];
     //export permissions
     $exportPermis = $this->permis[$this->tName]['export'];
     $allowRecordControls = false;
     if ($this->permis[$this->tName]['export'] && ($this->pSet->hasExportPage() || $this->pSet->hasPrintPage()) || $this->permis[$this->tName]['delete'] && $this->pSet->hasDelete() || $this->permis[$this->tName]['edit'] && ($this->pSet->hasInlineEdit() || $this->pSet->hasEditPage()) || $this->permis[$this->tName]['add'] && $this->pSet->hasInlineAdd()) {
         $allowRecordControls = true;
     }
     //add edit delete print export links
     $this->xt->assign("record_controls_block", $allowRecordControls);
     // adds style displat none to hiderecord controls, edit selected, delete selected, export selected and print selected if found 0 recs
     $this->xt->assign("details_block", $searchPermis);
     if (!$this->rowsFound) {
         $this->xt->displayBrickHidden("details_found");
         $this->xt->displayBrickHidden("vdetails_found");
     }
     if ($searchPermis && count($this->arrRecsPerPage)) {
         $this->xt->assign("recordspp_block", true);
         $this->createPerPage();
         if (!$this->rowsFound) {
             $this->xt->displayBrickHidden("recsperpage");
             $this->xt->displayBrickHidden("vrecsperpage");
         }
     }
     $this->xt->assign("pages_block", $searchPermis);
     if (!$this->rowsFound) {
         $this->xt->displayBrickHidden("page_of");
         $this->xt->displayBrickHidden("vpage_of");
     }
     $this->xt->assign("pages_attrs", "id=\"pageOf" . $this->id . "\" name=\"pageOf" . $this->id . "\"");
     $this->xt->assign("left_block", true);
     //$this->xt->assign("toplinks_block", true);
     $advSearchPargeFields = $this->pSetEdit->getAdvSearchFields();
     $this->xt->assign("moreButtons", $exportPermis && ($this->pSet->hasExportPage() || $this->pSet->hasPrintPage()) || $this->permis[$this->tName]['import'] && $this->pSet->hasImportPage() || $searchPermis && count($advSearchPargeFields) > 0);
     $this->xt->assign("widhtSelected", $exportPermis || $this->permis[$this->tName]['edit'] || $this->permis[$this->tName]['delete']);
     //export selected link and attr
     $this->xt->assign("exportselected_link", $exportPermis);
     $this->xt->assign("exportselectedlink_span", $this->buttonShowHideStyle());
     $this->xt->assign("exportselectedlink_attrs", $this->getPrintExportLinkAttrs('export'));
     // print links and attrs
     $this->xt->assign("prints_block", $exportPermis && $this->rowsFound);
     $this->xt->assign("print_link", $exportPermis && $this->rowsFound);
     $this->xt->assign("printlink_attrs", "id='print_" . $this->id . "' name='print_" . $this->id . "'");
     //print selected link and attr
     $this->xt->assign("printselected_link", $exportPermis && $this->rowsFound);
     $this->xt->assign("printselectedlink_attrs", $this->getPrintExportLinkAttrs('print'));
     $this->xt->assign("printselectedlink_span", $this->buttonShowHideStyle());
     //print all link and attr
     $this->xt->assign("printall_link", $exportPermis && $this->numRowsFromSQL > $this->pageSize && $this->pageSize > 0);
     $this->xt->assign("printalllink_attrs", "id='printAll_" . $this->id . "' name='printAll_" . $this->id . "'");
     //export link and attr
     $this->xt->assign("export_link", $exportPermis);
     $this->xt->assign("exportlink_attrs", "id = 'export_" . $this->id . "'\n\t\t\t\t\t\t   name = 'export_" . $this->id . "'\n\t\t\t\t\t\t   onclick=\"window.open(this.href,'wExport');return false;\"");
     //add link and attr
     $this->xt->assign("add_link", $this->permis[$this->tName]['add']);
     $this->xt->assign("addlink_attrs", "href='" . GetTableLink($this->shortTableName, "add") . "' id=\"addButton" . $this->id . "\"");
     //advanced search and attr
     $this->xt->assign("advsearchlink_attrs", "id=\"advButton" . $this->id . "\"");
     //select all link and attr
     $this->selectAllLinkAttrs();
     //edit selected link and attr
     $this->editSelectedLinkAttrs();
     //save all link, attr, span
     $this->saveAllLinkAttrs();
     //cansel all link, attr, span
     $this->cancelAllLinkAttrs();
     if ($this->numRowsFromSQL == 0) {
         $this->xt->displayBrickHidden("recordcontrol");
     }
     $this->xt->assign("grid_block", true);
     $this->xt->assign('menu_block', $this->isShowMenu() || $this->isAdminTable());
     $this->xt->assign("languages_block", true);
     if (isMobile()) {
         $this->xt->assign('morelinkmobile_block', true);
         $this->xt->assign('tableinfomobile_block', true);
         $this->xt->displayBrickHidden("vmsearch2");
     }
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:84,代码来源:listpage_simple.php

示例10: array

	
	$pageObject->fillSetCntrlMaps();
}
$xt->assign("style_block",true);
$xt->assign("stylefiles_block",true);

$editlink = "";
$editkeys = array();
	$editkeys["editid1"]=postvalue("editid1");
foreach($editkeys as $key=>$val)
{
	if($editlink)
		$editlink.= "&";
	$editlink.= $key."=".$val;
}
$xt->assign("editlink_attrs","id=\"editLink".$id."\" name=\"editLink".$id."\" onclick=\"window.location.href='".GetTableLink("webreport_users", "edit", $editlink)."'\"");

$strPerm = GetUserPermissions($strTableName);
if(CheckSecurity($ownerIdValue,"Edit") && !$inlineview && strpos($strPerm, "E")!==false)
	$xt->assign("edit_button",true);
else
	$xt->assign("edit_button",false);

if(!$pdf && !$all) 
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Begin show Next Prev button
	$nextlink=$prevlink="";
	if(count($next))
	{
		$xt->assign("next_button", true);
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:30,代码来源:webreport_users_view.php

示例11:

	$create_butt="<a id=\"return_app\" class=\"rnr-button\" onmouseover=\"this.focus();\" name=\"return_app\" href=\"#\">"."Back to main application"."</a>";
	$xt->assign("back_to_app", $create_butt);
}
if($wr_is_standalone && isWRAdmin())	
{
	$create_butt="<a id=\"users_list\" class=\"rnr-button\" onmouseover=\"this.focus();\" name=\"users_list\" href=\"#\">"."Users list"."</a>";
	$xt->assign("users_list_page", $create_butt);
}

if(isLoggedAsGuest())
{
	$strLogin="<A class=tablelinks href=\"".GetTableLink("login")."\">Log in</A>";
} 
else 
{
	$strLogin="Logged on as <b>".$_SESSION["UserID"]."</b>&nbsp;&nbsp;&nbsp;<A class=tablelinks href=\"".GetTableLink("login")."?a=logout\">"."Log out"."</A>";
}


$xt->assign("login_mess",$strLogin);		

if(isWRAdmin() || !count($arr_UserGroups))
{
	$create_butt="<a id=\"admin_sql\" class=\"rnr-button\" onmouseover=\"this.focus();\" name=\"admin_sql\" href=\"#\">"."Custom SQL"."</a>";
	$xt->assign("admin_sql", $create_butt);
}	
else	
	$xt->assign("admin_sql",false);
	
if(count($arr_tables_db) || count($arr_tables_project) || count($arr_tables_custom))	
{                 
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:31,代码来源:webreport.php

示例12: buildControl

    function buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data)
    {
        parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data);
        if ($this->pageObject->pageType == PAGE_SEARCH || $this->pageObject->pageType == PAGE_LIST) {
            echo '<input id="' . $this->cfield . '" ' . $this->inputStyle . ' type="text" ' . ($mode == MODE_SEARCH ? 'autocomplete="off" ' : '') . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? 'alt="' . $this->strLabel . '" ' : '') . 'name="' . $this->cfield . '" ' . $this->pageObject->pSetEdit->getEditParams($this->field) . ' value="' . runner_htmlspecialchars($value) . '">';
            $this->buildControlEnd($validate);
            return;
        }
        if ($mode == MODE_SEARCH) {
            $this->format = "";
        }
        $this->formStamp = generatePassword(15);
        $this->initUploadHandler();
        $this->upload_handler->formStamp = $this->formStamp;
        $filesArray = my_json_decode($value);
        if (!is_array($filesArray) || count($filesArray) == 0) {
            if (!$value) {
                $jsonValue = "[]";
            } else {
                $uploadedFile = $this->upload_handler->get_file_object($value);
                if (is_null($uploadedFile)) {
                    $filesArray = array();
                } else {
                    $filesArray = array(my_json_decode(my_json_encode($uploadedFile)));
                }
            }
        }
        if ($this->pageObject->pageType == PAGE_EDIT) {
            if (count($this->pageObject->keys) > 0) {
                $i = 1;
                foreach ($this->pageObject->keys as $keyName => $keyValue) {
                    $this->upload_handler->tkeys .= "&key" . $i . "=" . rawurlencode($keyValue);
                    $i++;
                }
            }
        }
        $_SESSION["mupload_" . $this->formStamp] = array();
        $userFilesArray = array();
        if (is_array($filesArray)) {
            foreach ($filesArray as $file) {
                $sessionArray = array();
                $sessionArray["file"] = $file;
                $sessionArray["fromDB"] = true;
                $sessionArray["deleted"] = false;
                $_SESSION["mupload_" . $this->formStamp][$file["usrName"]] = $sessionArray;
                $userFile = $this->upload_handler->buildUserFile($file);
                if (!$userFile["isImg"]) {
                    $userFile["isImg"] = true;
                    $userFile["isIco"] = true;
                    $userFile["thumbnail_url"] = $userFile["url"] . "&icon=1";
                }
                $userFilesArray[] = $userFile;
            }
        }
        $jsonValue = my_json_encode($userFilesArray);
        echo '
 <!-- The file upload form used as target for the file upload widget -->
    <form id="fileupload_' . $this->cfieldname . '" action="' . GetTableLink("mfhandler") . '" method="POST" enctype="multipart/form-data">
    
    <input type="hidden" name="formStamp_' . $this->cfieldname . '" id="formStamp_' . $this->cfieldname . '" value="' . $this->formStamp . '" />
    <input type="hidden" name="_action" value="POST" />
    <input type="hidden" id="value_' . $this->cfieldname . '" name="value_' . $this->cfieldname . '" value="' . runner_htmlspecialchars($jsonValue) . '" />
    
    <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
        <div class="row fileupload-buttonbar">
            <div class="span7">
                <!-- The fileinput-button span is used to style the file input field as button -->
 				<SPAN class="btn btn-success fileinput-button">
					<A class="rnr-button filesUpload" href="#" ><input class="fileinput-button-input" type="file" name="files[]" value="' . "Añadir ficheros" . '" multiple />' . "Añadir ficheros" . '</A>
				</SPAN>' . ($this->pageObject->pSetEdit->isAutoUpload($this->field) ? '' : '
                <SPAN class="btn btn-primary start">
				<A class="rnr-button" href="#" >' . "Enviar" . '</A> 
				</SPAN>
				<SPAN class="btn btn-warning cancel">
				<A class="rnr-button" href="#" >' . "Cancelar" . '</A> 
				</SPAN>') . '
                
            </div>
            <!-- The global progress information -->
            <div class="fileupload-progress fade">
                <!-- The global progress bar -->
                <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
                    <div class="bar" style="width:0;"></div>
                </div>
                <!-- The extended global progress information -->
                <div class="progress-extended">&nbsp;</div>
            </div>
        </div>
        <!-- The loading indicator is shown during file processing -->
        <div class="fileupload-loading"></div>
        <!-- The dummy for FireFox -->
        <input type="text" name="focusDummy" class="rnr-focusDummy" />
        <br>
        <!-- The table listing the files available for upload/download -->
        <table><tbody class="files"></tbody></table>
    </form>
    ';
        if (!isset($this->container->globalVals["muploadTemplateIncluded"])) {
            echo '<script type="text/x-tmpl" id="template-download">{% for (var i=0, file; file=o.files[i]; i++) { %}
    <tr class="template-download fade">
//.........这里部分代码省略.........
开发者ID:kcallow,项目名称:MatchMe,代码行数:101,代码来源:FileField.php

示例13: runner_htmlspecialchars

    $xt->assign("password_attrs", ($is508 == true ? " id=\"password\"" : "") . " value=\"" . runner_htmlspecialchars($pPassword) . "\"");
} else {
    $xt->assign("password_attrs", ($is508 == true ? " id=\"password\"" : "") . " value=\"" . runner_htmlspecialchars(refine(@$_COOKIE["password"])) . "\"");
}
if (@$_GET["message"] == "expired") {
    $message = "Your session has expired." . "Please login again.";
}
if (@$_GET["message"] == "invalidlogin") {
    $message = "Invalid Login";
}
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);
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:31,代码来源:login.php

示例14: assignLinks

	/**
	 * Assign values for links
	 *
	 * @param link $xt
	 */
	function assignLinks(&$xt) 
	{	
		// assign title between tag a
		$xt->assign("item".$this->id."_title", $this->title);
		// assign common attr
//		$attrForAssign = ' id="itemlink'.$this->id.'" title="'.$this->title.'" '.($this->style ? 'style="'.$this->style.'"' : '');
		$attrForAssign = ' id="itemlink'.$this->id.'" itemtitle="'.$this->title.'" '.($this->style ? 'style="'.$this->style.'"' : '');
		
		// add target blank attr
		if ($this->openType == "NewWindow"){
			//$attrForAssign .= ' target="_blank"';
			$attrForAssign .= ' rel="external"';
		}
		
		// for Internal links
		if ($this->linkType == "Internal")
		{
			if ($this->pageType!="WebReports")
			{
				// add menu id param. Used for setting current menu element
				$menuIdGetParam = '';
				if ($this->pageTypesInMenuForThisTable[$this->pageType]["count"]>1)
					$menuIdGetParam = 'menuItemId='.$this->id;
				if($this->params)
				{
					if($menuIdGetParam)
						$menuIdGetParam .='&'.$this->params;
					else
						$menuIdGetParam .= $this->params;
				}
				
				$attrForAssign .= ' href="'.GetTableLink(GetTableURL($this->table), strtolower($this->pageType), $menuIdGetParam).'"';					
				$xt->assign("item".$this->id."_optionattrs",'value="'.GetTableLink(GetTableURL($this->table), strtolower($this->pageType))
					.'" '.($this->openType == "NewWindow" ? 'link="External"' : ''));
			}
			else
			{
				$attrForAssign .= ' href="'.GetTableLink("webreport").'"';
				$xt->assign("item".$this->id."_optionattrs",' value="'.GetTableLink("webreport").'"');
			}
		// for External links
		}elseif($this->linkType == "External")
		{
			$attrForAssign .= ' href="'.$this->href.'"';
			$xt->assign("item".$this->id."_optionattrs",'value="'.$this->href.'" '.($this->openType == "NewWindow" ? 'link="External"' : ''));	
		}
		$xt->assign("item".$this->id."_menulink_attrs", $attrForAssign);

		
	}
开发者ID:helbertfurbino,项目名称:sgmofinanceiro,代码行数:55,代码来源:menuitem.php

示例15: doCommonAssignments

 /**
  *
  */
 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);
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:55,代码来源:reportpage.php


注:本文中的GetTableLink函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。