Exemplo n.º 1
0
if ($_GET["records_per_page"]) {
    CMS_session::setRecordsPerPage($_GET["records_per_page"]);
}
if ($_GET["bookmark"]) {
    CMS_session::setBookmark($_GET["bookmark"]);
}
$websites = CMS_websitesCatalog::getAll('order');
$records_per_page = CMS_session::getRecordsPerPage();
$bookmark = CMS_session::getBookmark();
$pages = ceil(sizeof($websites) / $records_per_page);
$first_record = ($bookmark - 1) * $records_per_page;
$dialog = new CMS_dialog();
$content = '';
$dialog->setTitle($cms_language->getMessage(MESSAGE_PAGE_TITLE));
if ($cms_message) {
    $dialog->setActionMessage($cms_message);
} elseif (io::request('cms_message_id', 'io::isPositiveInteger')) {
    $dialog->setActionMessage($cms_language->getMessage(io::request('cms_message_id')));
}
$content .= '
<script language="JavaScript" type="text/javascript" src="' . PATH_ADMIN_WR . '/v3/js/coordinates.js"></script>
<script language="JavaScript" type="text/javascript" src="' . PATH_ADMIN_WR . '/v3/js/drag.js"></script>
<script language="JavaScript" type="text/javascript" src="' . PATH_ADMIN_WR . '/v3/js/dragsort.js"></script>
<script language="JavaScript" type="text/javascript">
	<!--
	function sortList() {
		DragSort.makeListSortable(document.getElementById("websites"));
	};
	function startDragging() {
		if (document.getElementById("validateDrag").className=="hideit") {
			document.getElementById("validateDrag").className="showit";
Exemplo n.º 2
0
        if (!$cms_message && $_POST["cms_action"] == "validate") {
            //save the data
            $field->writeToPersistence();
            header("Location: modules_admin.php?moduleCodename=" . $moduleCodename . "&object=" . $object->getID() . "&field=" . $field->getID() . "&cms_message_id=" . MESSAGE_ACTION_OPERATION_DONE . "&" . session_name() . "=" . session_id());
            exit;
        } elseif ($_POST["cms_action"] != "validate") {
            $cms_message = '';
        }
        break;
}
$dialog = new CMS_dialog();
$content = '';
$dialog->setTitle($cms_language->getMessage(MESSAGE_PAGE_TITLE_APPLICATIONS) . " :: " . $cms_language->getMessage(MESSAGE_PAGE_TITLE, array($object->getLabel($cms_languege))), 'picto_modules.gif');
$dialog->setBacklink("modules_admin.php?moduleCodename=" . $moduleCodename . "&object=" . $object->getID() . "&field=" . $field->getID());
if ($cms_message) {
    $dialog->setActionMessage($cms_message);
}
if ($moduleCodename) {
    $polymod = CMS_modulesCatalog::getByCodename($moduleCodename);
}
$required = $field->getValue("required") ? ' checked="checked"' : '';
$indexable = $field->getValue("indexable") ? ' checked="checked"' : '';
$searchlist = $field->getValue("searchlist") ? ' checked="checked"' : '';
$searchable = $field->getValue("searchable") ? ' checked="checked"' : '';
$polyModules = CMS_modulesCatalog::getAll("label", true);
$poly_types = array();
foreach ($polyModules as $aModule) {
    $poly_types = array_merge($poly_types, CMS_poly_object_catalog::getObjectsForModule($aModule->getCodename()));
}
$object_types = CMS_object_catalog::getObjects($field, true);
$typeObject = $field->getTypeObject(true);
Exemplo n.º 3
0
                    break;
            }
            $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_MOVE_ERROR) . "\n" . $errmsg;
        } else {
            $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE);
        }
    } else {
        $cms_message = $cms_language->getMessage(MESSAGE_CLEARANCE_INSUFFICIENT);
    }
}
if ($cms_user) {
    $title = '<span class="admin">' . $cms_language->getMessage(MESSAGE_HELLO) . ' <strong>' . $cms_user->getFirstName() . ' ' . $cms_user->getLastName() . '</strong></span>';
}
$dialog = new CMS_dialog();
if ($cms_message) {
    $dialog->setActionMessage($cms_message);
} else {
    if (isset($_GET["cms_message"])) {
        $dialog->setActionMessage(SensitiveIO::sanitizeHTMLString($_GET["cms_message"]));
    }
}
$dialog->reloadTree();
$content = '
<table border="0" cellpadding="2" cellspacing="0" class="admin_clientSpace">
<tr>
	<td class="admin" width="100%" align="center">&nbsp;' . $title . '&nbsp;</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
	<td class="admin" width="100%" align="center">