/** * create the content of the backup database panel * @return string html-content */ function createBackupDatabaseForm() { $cont = '<fieldset class="options-options">'; $cont .= '<legend>Backup Database</legend>'; $cont .= '<form action="backup.php" method="get">'; $cont .= '<div>Page-ContextHelp-admin-db</div>'; $cont .= HTMLHelper::createButton('Backup Database'); $cont .= '</form>'; $cont .= '</fieldset>'; return $cont; }
/** * create the goto text-box * @return string html-content * @global array custom searchtypes defined in config.php */ function createSearchInterface() { global $CONFIG_SEARCH_CUSTOM; $this->addHeaderSection('<style type="text/css"> label { display: block; } table { width:100%; } td { vertical-align: top; } </style>'); $cont = '<br/><form method="post" action="../contact/searchlist.php">'; $cont .= "\n<table><tr><td>"; $projPos = array('', 'Project Manager', 'UTC Project Specialist', 'IUTC Project Specialist', 'PT Project Specialist', 'Parking Project Specialist', 'Technical Engineer', 'Civil Engineer', 'Traffic Signal Specialist', 'UTC System Specialist'); $projCat = array('', 'Urban Traffic', 'Interurban Traffic', 'Public / Freight', 'Transport', 'Tunnel', 'Infomobility', 'Service / Maintenance'); $projCon = array('', 'Prime Contractor', 'Subcontractor', 'Managing Contractor', 'Partner in a joint venture'); // Projects $cont .= "\n<br/><h3>Project Reference Search</h3>"; $cont .= HTMLHelper::createDropdownValuesAreKeys('p-category', 'Project Category', $projCat, isset($_POST['p-category']) ? $_POST['p-category'] : ''); $cont .= HTMLHelper::createDropdownValuesAreKeys('p-role', 'Contract Role', $projCon, isset($_POST['p-role']) ? $_POST['p-role'] : ''); $cont .= HTMLHelper::createTextField('p-company', 'Lead Company', isset($_POST['p-company']) ? $_POST['p-company'] : ''); $cont .= HTMLHelper::createTextField('p-value', 'Value of SWARCO part more than (EUR)', isset($_POST['p-value']) ? $_POST['p-value'] : ''); $cont .= HTMLHelper::createTextField('p-after', 'Projects completed after', isset($_POST['p-after']) ? $_POST['p-after'] : ''); // Project Ops $cont .= "</td><td>\n<br/><h3>Project Opportunity Search</h3>"; $cont .= HTMLHelper::createDropdownValuesAreKeys('o-category', 'Project Category', $projCat, isset($_POST['o-category']) ? $_POST['o-category'] : ''); $projCon = array('', 'Prime Contractor', 'Subcontractor', 'Managing Contractor', 'Partner in a joint venture'); $cont .= HTMLHelper::createDropdownValuesAreKeys('o-role', 'Contract Role', $projCon, isset($_POST['o-role']) ? $_POST['o-role'] : ''); $cont .= HTMLHelper::createTextField('o-company', 'Lead Company', isset($_POST['o-company']) ? $_POST['o-company'] : ''); $cont .= HTMLHelper::createTextField('o-value', 'Value of SWARCO part more than (EUR)', isset($_POST['o-value']) ? $_POST['o-value'] : ''); // Candidates $cont .= "</td><td>\n<br/><h3>Project Candidate Search</h3>"; $cont .= HTMLHelper::createDropdownValuesAreKeys('c-position', 'Project Position', $projPos, isset($_POST['c-position']) ? $_POST['c-position'] : ''); $cont .= HTMLHelper::createTextField('c-experience', 'Experience with the Project Position since', isset($_POST['c-experience']) ? $_POST['c-experience'] : ''); //$cont .= HTMLHelper::createDropdownValuesAreKeys('c-category','SWARCO Project Category',$projCat,''); //$cont .= HTMLHelper::createTextField('c-value','Value of SWARCO part more than (EUR)'); //$cont .= HTMLHelper::createTextField('c-after','Projects completed after'); $cont .= '</td></tr><tr><td colspan="2" style="text-align: right;">' . HTMLHelper::createButton('clear', 'button', 'onclick="window.location=\'' . $_SERVER['PHP_SELF'] . '\';"') . '</td><td style="text-align: right;">' . HTMLHelper::createButton('search') . '</td><td style="text-align: right;">' . HTMLHelper::createButton('export', 'submit', 'name="export"') . '</td></tr>'; $cont .= '</table><br>'; // make some space ... $cont .= '</form>'; return $cont; }