Example #1
0
		<dialog-title type="admin_h2">' . $cms_language->getMessage(MESSAGE_PAGE_PLUGIN_DEFINITIONS, false, MOD_POLYMOD_CODENAME) . ' :</dialog-title>
		<br />';
        if (sizeof($pluginDefinitions)) {
            $content .= '<table border="0" cellpadding="2" cellspacing="2">
			<tr>
				<th class="admin">' . $cms_language->getMessage(MESSAGE_PAGE_FIELD_TITLE) . '</th>
				<th class="admin">' . $cms_language->getMessage(MESSAGE_PAGE_FIELD_DESCRIPTION) . '</th>
				<th class="admin">' . $cms_language->getMessage(MESSAGE_PAGE_FIELD_ACTIONS) . '</th>
			</tr>';
            $copunt = 0;
            foreach ($pluginDefinitions as $pluginDefinition) {
                $count++;
                $td_class = $count % 2 == 0 ? "admin_lightgreybg" : "admin_darkgreybg";
                $content .= '<tr alt="ID : ' . $pluginDefinition->getID() . '" title="ID : ' . $pluginDefinition->getID() . '">
					<td class="' . $td_class . '">' . $pluginDefinition->getLabel($cms_language) . '</td>
					<td class="' . $td_class . '">' . $pluginDefinition->getDescription($cms_language) . '</td>
					<td class="' . $td_class . '">
						<table border="0" cellpadding="2" cellspacing="0">
							<tr>';
                $canBeDeleted = true;
                if ($canBeDeleted) {
                    $content .= '
								<form action="' . $_SERVER["SCRIPT_NAME"] . '" method="post" onSubmit="return confirm(\'' . addslashes($cms_language->getMessage(MESSAGE_PAGE_ACTION_DELETEPLUGINCONFIRM, array($pluginDefinition->getLabel($cms_language)), MOD_POLYMOD_CODENAME)) . ' ?\')">
								<input type="hidden" name="cms_action" value="deletePlugin" />
								<input type="hidden" name="pluginDefinition" value="' . $pluginDefinition->getID() . '" />
								<input type="hidden" name="moduleCodename" value="' . $moduleCodename . '" />
								<input type="hidden" name="object" value="' . $object->getID() . '" />
									<td class="admin"><input type="submit" class="admin_input_' . $td_class . '" value="' . $cms_language->getMessage(MESSAGE_PAGE_ACTION_DELETE) . '" /></td>
								</form>';
                }
                $content .= '