本文整理汇总了PHP中ew_IsMobile函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_IsMobile函数的具体用法?PHP ew_IsMobile怎么用?PHP ew_IsMobile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_IsMobile函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: SetupListOptions
function SetupListOptions()
{
global $Security, $Language;
// Add group option item
$item =& $this->ListOptions->Add($this->ListOptions->GroupOptionName);
$item->Body = "";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// "checkbox"
$item =& $this->ListOptions->Add("checkbox");
$item->Visible = FALSE;
$item->OnLeft = FALSE;
$item->Header = "<input type=\"checkbox\" name=\"key\" id=\"key\" onclick=\"ew_SelectAllKey(this);\">";
$item->ShowInDropDown = FALSE;
$item->ShowInButtonGroup = FALSE;
// Drop down button for ListOptions
$this->ListOptions->UseImageAndText = TRUE;
$this->ListOptions->UseDropDownButton = FALSE;
$this->ListOptions->DropDownButtonPhrase = $Language->Phrase("ButtonListOptions");
$this->ListOptions->UseButtonGroup = FALSE;
if ($this->ListOptions->UseButtonGroup && ew_IsMobile()) {
$this->ListOptions->UseDropDownButton = TRUE;
}
$this->ListOptions->ButtonClass = "btn-sm";
// Class for button group
// Call ListOptions_Load event
$this->ListOptions_Load();
$this->SetupListOptionsExt();
$item =& $this->ListOptions->GetItem($this->ListOptions->GroupOptionName);
$item->Visible = $this->ListOptions->GroupOptionVisible();
}
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:v_hoja_mantenimintolist.php
示例2: ew_HtmlEncode
?>
</table>
</td></tr></table>
<input type="hidden" data-field="x_socio_nro" name="x_socio_nro" id="x_socio_nro" value="<?php
echo ew_HtmlEncode($socios->socio_nro->CurrentValue);
?>
">
<button class="btn btn-primary ewButton" name="btnAction" id="btnAction" type="submit"><?php
echo $Language->Phrase("EditBtn");
?>
</button>
</form>
<script type="text/javascript">
fsociosedit.Init();
<?php
if (EW_MOBILE_REFLOW && ew_IsMobile()) {
?>
ew_Reflow();
<?php
}
?>
</script>
<?php
$socios_edit->ShowPageFooter();
if (EW_DEBUG_ENABLED) {
echo ew_DebugMsg();
}
?>
<script type="text/javascript">
// Write your table-specific startup script here
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciagsociosedit.php
示例3: SetupExportOptions
function SetupExportOptions()
{
global $Language;
// Printer friendly
$item =& $this->ExportOptions->Add("print");
$item->Body = "<a href=\"" . $this->ExportPrintUrl . "\" class=\"ewExportLink ewPrint\" title=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\">" . $Language->Phrase("PrinterFriendly") . "</a>";
$item->Visible = TRUE;
// Export to Excel
$item =& $this->ExportOptions->Add("excel");
$item->Body = "<a href=\"" . $this->ExportExcelUrl . "\" class=\"ewExportLink ewExcel\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\">" . $Language->Phrase("ExportToExcel") . "</a>";
$item->Visible = TRUE;
// Export to Word
$item =& $this->ExportOptions->Add("word");
$item->Body = "<a href=\"" . $this->ExportWordUrl . "\" class=\"ewExportLink ewWord\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\">" . $Language->Phrase("ExportToWord") . "</a>";
$item->Visible = TRUE;
// Export to Html
$item =& $this->ExportOptions->Add("html");
$item->Body = "<a href=\"" . $this->ExportHtmlUrl . "\" class=\"ewExportLink ewHtml\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToHtmlText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToHtmlText")) . "\">" . $Language->Phrase("ExportToHtml") . "</a>";
$item->Visible = FALSE;
// Export to Xml
$item =& $this->ExportOptions->Add("xml");
$item->Body = "<a href=\"" . $this->ExportXmlUrl . "\" class=\"ewExportLink ewXml\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToXmlText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToXmlText")) . "\">" . $Language->Phrase("ExportToXml") . "</a>";
$item->Visible = FALSE;
// Export to Csv
$item =& $this->ExportOptions->Add("csv");
$item->Body = "<a href=\"" . $this->ExportCsvUrl . "\" class=\"ewExportLink ewCsv\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToCsvText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToCsvText")) . "\">" . $Language->Phrase("ExportToCsv") . "</a>";
$item->Visible = FALSE;
// Export to Pdf
$item =& $this->ExportOptions->Add("pdf");
$item->Body = "<a href=\"" . $this->ExportPdfUrl . "\" class=\"ewExportLink ewPdf\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToPDFText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToPDFText")) . "\">" . $Language->Phrase("ExportToPDF") . "</a>";
$item->Visible = TRUE;
// Export to Email
$item =& $this->ExportOptions->Add("email");
$url = "";
$item->Body = "<button id=\"emf_deudas\" class=\"ewExportLink ewEmail\" title=\"" . $Language->Phrase("ExportToEmailText") . "\" data-caption=\"" . $Language->Phrase("ExportToEmailText") . "\" onclick=\"ew_EmailDialogShow({lnk:'emf_deudas',hdr:ewLanguage.Phrase('ExportToEmailText'),f:document.fdeudasview,key:" . ew_ArrayToJsonAttr($this->RecKey) . ",sel:false" . $url . "});\">" . $Language->Phrase("ExportToEmail") . "</button>";
$item->Visible = TRUE;
// Drop down button for export
$this->ExportOptions->UseButtonGroup = TRUE;
$this->ExportOptions->UseImageAndText = TRUE;
$this->ExportOptions->UseDropDownButton = TRUE;
if ($this->ExportOptions->UseButtonGroup && ew_IsMobile()) {
$this->ExportOptions->UseDropDownButton = TRUE;
}
$this->ExportOptions->DropDownButtonPhrase = $Language->Phrase("ButtonExport");
// Add group option item
$item =& $this->ExportOptions->Add($this->ExportOptions->GroupOptionName);
$item->Body = "";
$item->Visible = FALSE;
// Hide options for export
if ($this->Export != "") {
$this->ExportOptions->HideAllOptions();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:53,代码来源:cciag_deudasview.php
示例4: SetupListOptions
function SetupListOptions()
{
global $Security, $Language;
// Add group option item
$item =& $this->ListOptions->Add($this->ListOptions->GroupOptionName);
$item->Body = "";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// "view"
$item =& $this->ListOptions->Add("view");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE;
$item->OnLeft = FALSE;
// "edit"
$item =& $this->ListOptions->Add("edit");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE;
$item->OnLeft = FALSE;
// "copy"
$item =& $this->ListOptions->Add("copy");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE;
$item->OnLeft = FALSE;
// "detail_servicio_medico_prestado"
$item =& $this->ListOptions->Add("detail_servicio_medico_prestado");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE && !$this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
if (!isset($GLOBALS["servicio_medico_prestado_grid"])) {
$GLOBALS["servicio_medico_prestado_grid"] = new cservicio_medico_prestado_grid();
}
// "detail_consulta"
$item =& $this->ListOptions->Add("detail_consulta");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE && !$this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
if (!isset($GLOBALS["consulta_grid"])) {
$GLOBALS["consulta_grid"] = new cconsulta_grid();
}
// "detail_internado_diario"
$item =& $this->ListOptions->Add("detail_internado_diario");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = TRUE && !$this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
if (!isset($GLOBALS["internado_diario_grid"])) {
$GLOBALS["internado_diario_grid"] = new cinternado_diario_grid();
}
// Multiple details
if ($this->ShowMultipleDetails) {
$item =& $this->ListOptions->Add("details");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
}
// "checkbox"
$item =& $this->ListOptions->Add("checkbox");
$item->Visible = FALSE;
$item->OnLeft = FALSE;
$item->Header = "<input type=\"checkbox\" name=\"key\" id=\"key\" onclick=\"ew_SelectAllKey(this);\">";
$item->ShowInDropDown = FALSE;
$item->ShowInButtonGroup = FALSE;
// Drop down button for ListOptions
$this->ListOptions->UseImageAndText = TRUE;
$this->ListOptions->UseDropDownButton = FALSE;
$this->ListOptions->DropDownButtonPhrase = $Language->Phrase("ButtonListOptions");
$this->ListOptions->UseButtonGroup = FALSE;
if ($this->ListOptions->UseButtonGroup && ew_IsMobile()) {
$this->ListOptions->UseDropDownButton = TRUE;
}
$this->ListOptions->ButtonClass = "btn-sm";
// Class for button group
// Call ListOptions_Load event
$this->ListOptions_Load();
$this->SetupListOptionsExt();
$item =& $this->ListOptions->GetItem($this->ListOptions->GroupOptionName);
$item->Visible = $this->ListOptions->GroupOptionVisible();
}
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:81,代码来源:cuentalist.php
示例5: SetupListOptions
function SetupListOptions()
{
global $Security, $Language;
// "griddelete"
if ($this->AllowAddDeleteRow) {
$item =& $this->ListOptions->Add("griddelete");
$item->CssStyle = "white-space: nowrap;";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// Default hidden
}
// Add group option item
$item =& $this->ListOptions->Add($this->ListOptions->GroupOptionName);
$item->Body = "";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// Drop down button for ListOptions
$this->ListOptions->UseImageAndText = TRUE;
$this->ListOptions->UseDropDownButton = FALSE;
$this->ListOptions->DropDownButtonPhrase = $Language->Phrase("ButtonListOptions");
$this->ListOptions->UseButtonGroup = FALSE;
if ($this->ListOptions->UseButtonGroup && ew_IsMobile()) {
$this->ListOptions->UseDropDownButton = TRUE;
}
$this->ListOptions->ButtonClass = "btn-sm";
// Class for button group
$item =& $this->ListOptions->GetItem($this->ListOptions->GroupOptionName);
$item->Visible = $this->ListOptions->GroupOptionVisible();
}
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:29,代码来源:cuentagridcls.php
示例6: header
?>
</div>
<?php
}
if (@(!$gbSkipHeaderFooter)) {
?>
<div class="ewLayout">
<?php
if (!ew_IsMobile()) {
?>
<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->
<div id="ewHeaderRow" class="ewHeaderRow"><img src="phpimages/phpmkrlogo10.png" alt="" style="border: 0;"> </div>
<!-- header (end) -->
<?php
}
if (ew_IsMobile()) {
?>
<div data-role="content" data-enhance="false">
<table id="ewContentTable" class="ewContentTable">
<tr>
<?php
} else {
?>
<!-- content (begin) -->
<table id="ewContentTable" cellspacing="0" class="ewContentTable">
<tr><td id="ewMenuColumn" class="ewMenuColumn">
<!-- left column (begin) -->
<?php
include_once "ewmenu.php";
?>
<!-- left column (end) -->
开发者ID:ahmarmahmood,项目名称:top,代码行数:31,代码来源:header.php
示例7: ew_IsMobile
; // Upload thumbnail width
var EW_UPLOAD_THUMBNAIL_HEIGHT = <?php
echo EW_UPLOAD_THUMBNAIL_HEIGHT;
?>
; // Upload thumbnail height
var EW_MULTIPLE_UPLOAD_SEPARATOR = "<?php
echo EW_MULTIPLE_UPLOAD_SEPARATOR;
?>
"; // Upload multiple separator
var EW_USE_COLORBOX = <?php
echo EW_USE_COLORBOX ? "true" : "false";
?>
;
var EW_USE_JAVASCRIPT_MESSAGE = false;
var EW_IS_MOBILE = <?php
echo ew_IsMobile() ? "true" : "false";
?>
;
var EW_PROJECT_STYLESHEET_FILENAME = "<?php
echo EW_PROJECT_STYLESHEET_FILENAME;
?>
"; // Project style sheet
var EW_PDF_STYLESHEET_FILENAME = "<?php
echo EW_PDF_STYLESHEET_FILENAME;
?>
"; // Pdf style sheet
var EW_TOKEN = "<?php
echo @$gsToken;
?>
";
var EW_CSS_FLIP = <?php
开发者ID:erick-chali,项目名称:Ubicacion,代码行数:31,代码来源:header.php
示例8: SetupListOptions
function SetupListOptions()
{
global $Security, $Language;
// "griddelete"
if ($this->AllowAddDeleteRow) {
$item =& $this->ListOptions->Add("griddelete");
$item->CssStyle = "white-space: nowrap;";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// Default hidden
}
// Add group option item
$item =& $this->ListOptions->Add($this->ListOptions->GroupOptionName);
$item->Body = "";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// "view"
$item =& $this->ListOptions->Add("view");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "edit"
$item =& $this->ListOptions->Add("edit");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "copy"
$item =& $this->ListOptions->Add("copy");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "delete"
$item =& $this->ListOptions->Add("delete");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// List actions
$item =& $this->ListOptions->Add("listactions");
$item->CssStyle = "white-space: nowrap;";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
// "checkbox"
$item =& $this->ListOptions->Add("checkbox");
$item->Visible = FALSE;
$item->OnLeft = FALSE;
$item->Header = "<input type=\"checkbox\" name=\"key\" id=\"key\" onclick=\"ew_SelectAllKey(this);\">";
$item->ShowInDropDown = FALSE;
$item->ShowInButtonGroup = FALSE;
// Drop down button for ListOptions
$this->ListOptions->UseImageAndText = TRUE;
$this->ListOptions->UseDropDownButton = FALSE;
$this->ListOptions->DropDownButtonPhrase = $Language->Phrase("ButtonListOptions");
$this->ListOptions->UseButtonGroup = FALSE;
if ($this->ListOptions->UseButtonGroup && ew_IsMobile()) {
$this->ListOptions->UseDropDownButton = TRUE;
}
$this->ListOptions->ButtonClass = "btn-sm";
// Class for button group
// Call ListOptions_Load event
$this->ListOptions_Load();
$this->SetupListOptionsExt();
$item =& $this->ListOptions->GetItem($this->ListOptions->GroupOptionName);
$item->Visible = $this->ListOptions->GroupOptionVisible();
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:66,代码来源:imageslist.php
示例9: ew_GetHashUrl
function ew_GetHashUrl($url, $hash)
{
$wrkurl = $url;
if (ew_IsMobile()) {
if (strpos($wrkurl, "?") !== FALSE) {
$wrkurl .= "&";
} else {
$wrkurl .= "?";
}
$wrkurl .= "_row=" . $hash;
} else {
$wrkurl .= "#" . $hash;
}
return $wrkurl;
}
开发者ID:scintes,项目名称:sistemas,代码行数:15,代码来源:cciag_phpfn10.php
示例10: Page_Main
function Page_Main()
{
global $objForm, $Language, $gsSearchError;
global $gbSkipHeaderFooter;
// Set up Breadcrumb
$this->SetupBreadcrumb();
// Check modal
$this->IsModal = @$_GET["modal"] == "1" || @$_POST["modal"] == "1";
if ($this->IsModal) {
$gbSkipHeaderFooter = TRUE;
}
$this->FormClassName = "ewForm ewSearchForm";
if (ew_IsMobile() || $this->IsModal) {
$this->FormClassName = ew_Concat("form-horizontal", $this->FormClassName, " ");
}
if ($this->IsPageRequest()) {
// Validate request
// Get action
$this->CurrentAction = $objForm->GetValue("a_search");
switch ($this->CurrentAction) {
case "S":
// Get search criteria
// Build search string for advanced search, remove blank field
$this->LoadSearchValues();
// Get search values
if ($this->ValidateSearch()) {
$sSrchStr = $this->BuildAdvancedSearch();
} else {
$sSrchStr = "";
$this->setFailureMessage($gsSearchError);
}
if ($sSrchStr != "") {
$sSrchStr = $this->UrlParm($sSrchStr);
$sSrchStr = "nos_memberslist.php" . "?" . $sSrchStr;
if ($this->IsModal) {
$row = array();
$row["url"] = $sSrchStr;
echo ew_ArrayToJson(array($row));
$this->Page_Terminate();
exit;
} else {
$this->Page_Terminate($sSrchStr);
// Go to list page
}
}
}
}
// Restore search settings from Session
if ($gsSearchError == "") {
$this->LoadAdvancedSearch();
}
// Render row for search
$this->RowType = EW_ROWTYPE_SEARCH;
$this->ResetAttrs();
$this->RenderRow();
}
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:56,代码来源:nos_memberssrch.php
示例11: SetupExportOptions
function SetupExportOptions()
{
global $Language;
// Printer friendly
$item =& $this->ExportOptions->Add("print");
$item->Body = "<a href=\"" . $this->ExportPrintUrl . "\" class=\"ewExportLink ewPrint\" title=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\">" . $Language->Phrase("PrinterFriendly") . "</a>";
$item->Visible = TRUE;
// Export to Excel
$item =& $this->ExportOptions->Add("excel");
$item->Body = "<a href=\"" . $this->ExportExcelUrl . "\" class=\"ewExportLink ewExcel\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\">" . $Language->Phrase("ExportToExcel") . "</a>";
$item->Visible = TRUE;
// Export to Word
$item =& $this->ExportOptions->Add("word");
$item->Body = "<a href=\"" . $this->ExportWordUrl . "\" class=\"ewExportLink ewWord\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\">" . $Language->Phrase("ExportToWord") . "</a>";
$item->Visible = TRUE;
// Drop down button for export
$this->ExportOptions->UseButtonGroup = TRUE;
$this->ExportOptions->UseImageAndText = TRUE;
$this->ExportOptions->UseDropDownButton = TRUE;
if ($this->ExportOptions->UseButtonGroup && ew_IsMobile()) {
$this->ExportOptions->UseDropDownButton = TRUE;
}
$this->ExportOptions->DropDownButtonPhrase = $Language->Phrase("ButtonExport");
// Add group option item
$item =& $this->ExportOptions->Add($this->ExportOptions->GroupOptionName);
$item->Body = "";
$item->Visible = FALSE;
// Hide options for export
if ($this->Export != "") {
$this->ExportOptions->HideAllOptions();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:32,代码来源:cciag_r_listado_socios_por_actividad_y_rubroreport.php
示例12: Page_Main
function Page_Main()
{
global $objForm, $Language, $gsFormError;
$this->FormClassName = "ewForm ewAddForm";
if (ew_IsMobile()) {
$this->FormClassName = ew_Concat("form-horizontal", $this->FormClassName, " ");
}
// Process form if post back
if (@$_POST["a_add"] != "") {
$this->CurrentAction = $_POST["a_add"];
// Get form action
$this->CopyRecord = $this->LoadOldRecord();
// Load old recordset
$this->LoadFormValues();
// Load form values
} else {
// Not post back
// Load key values from QueryString
$this->CopyRecord = TRUE;
if (@$_GET["memberID"] != "") {
$this->memberID->setQueryStringValue($_GET["memberID"]);
$this->setKey("memberID", $this->memberID->CurrentValue);
// Set up key
} else {
$this->setKey("memberID", "");
// Clear key
$this->CopyRecord = FALSE;
}
if ($this->CopyRecord) {
$this->CurrentAction = "C";
// Copy record
} else {
$this->CurrentAction = "I";
// Display blank record
}
}
// Set up Breadcrumb
$this->SetupBreadcrumb();
// Validate form if post back
if (@$_POST["a_add"] != "") {
if (!$this->ValidateForm()) {
$this->CurrentAction = "I";
// Form error, reset action
$this->EventCancelled = TRUE;
// Event cancelled
$this->RestoreFormValues();
// Restore form values
$this->setFailureMessage($gsFormError);
}
} else {
if ($this->CurrentAction == "I") {
// Load default values for blank record
$this->LoadDefaultValues();
}
}
// Perform action based on action code
switch ($this->CurrentAction) {
case "I":
// Blank record, no action required
break;
case "C":
// Copy an existing record
if (!$this->LoadRow()) {
// Load record based on key
if ($this->getFailureMessage() == "") {
$this->setFailureMessage($Language->Phrase("NoRecord"));
}
// No record found
$this->Page_Terminate("nos_memberslist.php");
// No matching record, return to list
}
break;
case "A":
// Add new record
$this->SendEmail = TRUE;
// Send email on add success
if ($this->AddRow($this->OldRecordset)) {
// Add successful
if ($this->getSuccessMessage() == "") {
$this->setSuccessMessage($Language->Phrase("AddSuccess"));
}
// Set up success message
$sReturnUrl = $this->GetViewUrl();
if (ew_GetPageName($sReturnUrl) == "nos_memberslist.php") {
$sReturnUrl = $this->AddMasterUrl($sReturnUrl);
} elseif (ew_GetPageName($sReturnUrl) == "nos_membersview.php") {
$sReturnUrl = $this->GetViewUrl();
}
// View page, return to view page with keyurl directly
$this->Page_Terminate($sReturnUrl);
// Clean up and return
} else {
$this->EventCancelled = TRUE;
// Event cancelled
$this->RestoreFormValues();
// Add failed, restore form values
}
}
// Render row based on row type
$this->RowType = EW_ROWTYPE_ADD;
//.........这里部分代码省略.........
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:101,代码来源:nos_membersadd.php
示例13: SetupListOptions
function SetupListOptions()
{
global $Security, $Language;
// Add group option item
$item =& $this->ListOptions->Add($this->ListOptions->GroupOptionName);
$item->Body = "";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
// "view"
$item =& $this->ListOptions->Add("view");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "edit"
$item =& $this->ListOptions->Add("edit");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "copy"
$item =& $this->ListOptions->Add("copy");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "delete"
$item =& $this->ListOptions->Add("delete");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn();
$item->OnLeft = FALSE;
// "detail_images"
$item =& $this->ListOptions->Add("detail_images");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $Security->IsLoggedIn() && !$this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
if (!isset($GLOBALS["images_grid"])) {
$GLOBALS["images_grid"] = new cimages_grid();
}
// Multiple details
if ($this->ShowMultipleDetails) {
$item =& $this->ListOptions->Add("details");
$item->CssStyle = "white-space: nowrap;";
$item->Visible = $this->ShowMultipleDetails;
$item->OnLeft = FALSE;
$item->ShowInButtonGroup = FALSE;
}
// Set up detail pages
$pages = new cSubPages();
$pages->Add("images");
$this->DetailPages = $pages;
// List actions
$item =& $this->ListOptions->Add("listactions");
$item->CssStyle = "white-space: nowrap;";
$item->OnLeft = FALSE;
$item->Visible = FALSE;
$item->ShowInButtonGroup = FALSE;
$item->ShowInDropDown = FALSE;
// "checkbox"
$item =& $this->ListOptions->Add("checkbox");
$item->Visible = FALSE;
$item->OnLeft = FALSE;
$item->Header = "<input type=\"checkbox\" name=\"key\" id=\"key\" onclick=\"ew_SelectAllKey(this);\">";
$item->ShowInDropDown = FALSE;
$item->ShowInButtonGroup = FALSE;
// Drop down button for ListOptions
$this->ListOptions->UseImageAndText = TRUE;
$this->ListOptions->UseDropDownButton = FALSE;
$this->ListOptions->DropDownButtonPhrase = $Language->Phrase("ButtonListOptions");
$this->ListOptions->UseButtonGroup = FALSE;
if ($this->ListOptions->UseButtonGroup && ew_IsMobile()) {
$this->ListOptions->UseDropDownButton = TRUE;
}
$this->ListOptions->ButtonClass = "btn-sm";
// Class for button group
// Call ListOptions_Load event
$this->ListOptions_Load();
$this->SetupListOptionsExt();
$item =& $this->ListOptions->GetItem($this->ListOptions->GroupOptionName);
$item->Visible = $this->ListOptions->GroupOptionVisible();
}
开发者ID:NaurozAhmad,项目名称:Senho,代码行数:79,代码来源:projectslist.php
注:本文中的ew_IsMobile函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论