Example #1
0
    window.open(URL, "contact_products_window", "toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=520,height=240");
}

//]]>
</script>

<?php 
echo "<h2>" . icon('contact', 32) . " ";
echo "{$strBrowseContacts}</h2>";
echo "<table summary='alphamenu' align='center'>";
echo "<tr>";
echo "<td align='center'>";
echo "<form action='{$_SERVER['PHP_SELF']}' method='get'>";
echo "<p>{$strBrowseContacts}: ";
echo "<input type='text' id='search_string' style='width: 300px;' name='search_string' />";
echo autocomplete('search_string', 'contact');
echo "<input name='submit' type='submit' value=\"{$strGo}\" /></p>";
echo "</form>\n";
if ($displayinactive == "true") {
    echo "<a href='" . $_SERVER['PHP_SELF'] . "?displayinactive=false";
    if (!empty($search_string)) {
        echo "&amp;search_string={$search_string}";
    }
    echo "'>{$strShowActiveOnly}</a>";
    $inactivestring = "displayinactive=true";
} else {
    echo "<a href='" . $_SERVER['PHP_SELF'] . "?displayinactive=true";
    if (!empty($search_string)) {
        echo "&amp;search_string={$search_string}";
    }
    echo "'>{$strShowAll}</a>";
Example #2
0
    $updateid = db_read_column('updateid', $dbTempIncoming, $incomingid);
}
if (empty($action) or $action == 'showform') {
    $pagescripts = array('scriptaculous/scriptaculous.js', 'AutoComplete.js');
    include APPLICATION_INCPATH . 'htmlheader.inc.php';
    echo "<h2>" . icon('add', 32) . " {$strAddIncident} - {$strFindContact}</h2>";
    if (empty($siteid)) {
        echo "<form action='{$_SERVER['PHP_SELF']}?action=findcontact' method='post'>";
        echo "<input type='hidden' name='context' value='{$context}' />";
        echo "<input type='hidden' name='updateid' value='{$updateid}' />";
        echo "<table class='vertical'>";
        echo "<tr><th><label for='search_string'>";
        echo icon('contact', 16);
        echo " {$strContact}</label></th><td>\n";
        echo "<input type='text' name='search_string' id='search_string' size='30' value='{$query}' />\n";
        echo autocomplete('search_string', 'autocomplete_sitecontact');
        echo "<input type='hidden' name='win' value='{$win}' />";
        echo "<input name='submit' type='submit' value='{$strFindContact}' />";
        echo "</td></tr>";
        echo "</table>";
        echo "<p align='center'><a href='contacts.php'>{$strBrowseContacts}</a>...</p>";
        echo "<input name='siteid' type='hidden' value='{$siteid}' />";
        echo "</form>\n";
    } else {
        echo "<p align='center'>{$strContact} {$contactid}</p>";
    }
    include APPLICATION_INCPATH . 'htmlfooter.inc.php';
} elseif ($action == 'findcontact') {
    //  Search for the contact specified in the maintenance contracts and display a list of choices
    // This Page Is Valid XHTML 1.0 Transitional! 27Oct05
    // Are we using LDAP?
Example #3
0
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Last name") . " :</td>";
echo "<td>" . Form::input("user_main", "name", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Location") . " :</h3></td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Country") . " :</td>";
echo "<td>" . Form::select("user_main", "id_geolocalisation_country", $data['geolocalisation_country'], "", array("class" => "form-control ac_input")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("City") . " :</td>";
//TODO replace with one from Form
echo "<td>" . autocomplete("user_main", "id_geolocalisation_city", "form-control") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Password") . " :</h3></td>";
echo "</tr>";
/*
echo "<tr>";
echo "<td>Identifiant </td>";
echo "<td>: <input class=\"text\" type=\"text\" name=\"identifiant\" value=\"".$_GET['identifiant']."\" /></td>";
echo "</tr>";
*/
echo "<tr>";
echo "<td class=\"first\">" . __("Password") . " :</td>";
echo "<td>" . password("user_main", "password", "form-control") . "</td>";
echo "</tr>";
echo "<tr>";
Example #4
0
    echo '		</td>
			</tr>';
    foreach ($ignoretest as $ignore) {
        if (in_array($ignore, $ignoredPredicates) || in_array($ignore, $ignoredObjects)) {
            echo '<tr><td><span style="color:red">Warning: The preview connection contains elements in your ignore list.</span></td></tr>';
        }
    }
    echo '</table>
			</td>
			</tr>';
    echo '</table>';
}
//AJAX Funktionsaufrufe
//Autocomplete fuer die 4 Eingabefelder
if ($_GET['f'] == 1) {
    autocomplete();
}
//Laden der Queryliste
if ($_GET['f'] == 2) {
    loadQueries($_GET['sort']);
}
//Uebergebenes Query abspeichern
if ($_GET['f'] == 3) {
    saveQuery($_POST['arrayserialized'], $_GET['first'], $_GET['second'], $_GET['limit'], $_GET['maxdepth'], $_GET['depth']);
}
//Laden der Infobox zu einer Resource
if ($_GET['f'] == 4) {
    loadInfobox();
}
//Progressanzeige
if ($_GET['f'] == 5) {
Example #5
0
        header("Location: {$url}");
    }
}
include APPLICATION_INCPATH . 'htmlheader.inc.php';
if ($search_string == '') {
    $search_string = 'a';
}
echo "<h2>" . icon('site', 32) . " ";
echo "{$strBrowseSites}</h2>";
echo "<table summary='alphamenu' align='center'>";
echo "<tr>";
echo "<td align='center'>";
echo "<form action='{$_SERVER['PHP_SELF']}' method='get'>";
echo "<p>{$strBrowseSites}: ";
echo "<input type='text' id='search_string' style='width: 300px;' name='search_string' />";
echo autocomplete('search_string', 'sites');
echo "<input name='submit' type='submit' value='{$strGo}' /></p>";
echo "</form>\n";
if ($displayinactive == "true") {
    echo "<a href='" . $_SERVER['PHP_SELF'] . "?displayinactive=false";
    if (!empty($search_string)) {
        echo "&amp;search_string={$search_string}&amp;owner={$owner}";
    }
    echo "'>{$strShowActiveOnly}</a>";
    $inactivestring = "displayinactive=true";
} else {
    echo "<a href='" . $_SERVER['PHP_SELF'] . "?displayinactive=true";
    if (!empty($search_string)) {
        echo "&amp;search_string={$search_string}&amp;owner={$owner}";
    }
    echo "'>{$strShowAll}</a>";
Example #6
0
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Path") . " :</td>";
echo "<td>" . Form::input("backup_storage_area", "path", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Location") . " :</h3></td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("Country") . " :</td>";
echo "<td>" . Form::select("backup_storage_area", "id_geolocalisation_country", $data['geolocalisation_country'], "", array("class" => "form-control")) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"first\">" . __("City") . " :</td>";
//todo remove basic.php and add autocomplete to Form
echo "<td>" . autocomplete("backup_storage_area", "id_geolocalisation_city", "form-control") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\"><h3 class=\"item\">" . __("Account SSH") . " :</h3></td>";
echo "</tr>";
/*
echo "<tr>";
echo "<td>Identifiant </td>";
echo "<td>: <input class=\"text\" type=\"text\" name=\"identifiant\" value=\"".$_GET['identifiant']."\" /></td>";
echo "</tr>";
*/
echo "<tr>";
echo "<td class=\"first\">" . __("Login") . " :</td>";
echo "<td>" . Form::input("backup_storage_area", "ssh_login", array("class" => "form-control", "autocomplete" => "false", "autocomplete" => "off", "autocomplete" => "new-password")) . "</td>";
echo "</tr>";
echo "<tr>";
Example #7
0
$data['request'] === "sent_mail" ? $class4 = 'btBlueTest' : ($class4 = 'btGreyLite');
$data['request'] === "trash" ? $class5 = 'btBlueTest' : ($class5 = 'btGreyLite');
echo ' <a href="' . LINK . 'user/mailbox/compose/" class="right button ' . $class1 . ' overlayW btMedium"><img src="' . IMG . 'mailbox/compose.png" height="16" width="16"> ' . __("Compose") . ' </a>';
echo '<a href="' . LINK . 'user/mailbox/all_mails/" class="button ' . $class2 . ' overlayW btMedium"><img src="' . IMG . 'mailbox/mails-stack.gif" height="16" width="16"> ' . __("All mails") . '</a></button> ';
echo '<a href="' . LINK . 'user/mailbox/inbox/" class="button ' . $class3 . ' overlayW btMedium"> <img src="' . IMG . 'mailbox/emailButton.png" height="16" width="16"> ' . __("Inbox") . '</a></button> ';
echo '<a href="' . LINK . 'user/mailbox/sent_mail/" class="button ' . $class4 . ' overlayW btMedium"><img src="' . IMG . 'mailbox/sent_items.gif" height="16" width="16"> ' . __("Sent Mail") . '</a></button> ';
echo '<a href="' . LINK . 'user/mailbox/trash/" class="button ' . $class5 . ' overlayW btMedium"><img src="' . IMG . 'mailbox/trash.gif" height="16" width="16"> ' . __("Trash") . '</a></button> ';
echo '<div>';
switch ($data['request']) {
    case "compose":
        echo '<div class="post">';
        echo '<form action="" method="post">';
        echo "<h3>" . __("Compose") . "</h3>";
        if (empty($data['send_to'][1]) || empty($data['send_to'][1])) {
            echo '<label class="required"><strong>' . __("To") . ' <span>(' . __("Required") . ')</span></strong><br>';
            echo autocomplete("mailbox_main", "id_user_main__to", "textform");
            echo '<br></label>';
        } else {
            echo '<label class="required">' . __("To") . '<br>';
            echo '<input class="text textform" type="text" name="mailbox_main[id_user_main__to-auto]" value="' . $data['send_to'][2] . '" readonly="readonly" />';
            echo '<input class="text textform" type="hidden" name="mailbox_main[id_user_main__to]" value="' . $data['send_to'][1] . '" readonly="readonly" />';
            echo '<br></label>';
        }
        echo '<label class="required"><strong>' . __("Subject") . ' <span>(' . __("Required") . ')</span></strong><br>';
        echo input("mailbox_main", "title", "textform");
        echo '<br></label>';
        echo '<label class="required"><strong>' . __("Message") . ' <span>(' . __("Required") . ')</span></strong><br>';
        echo textarea("mailbox_main", "text", "textform");
        echo '</label><br />';
        echo '<input class="button btBlueTest overlayW btMedium" type="submit" value="' . __("Send") . '" /> ';
        echo '</form>';
Example #8
0
 function build_autocomplete()
 {
     $this->load->helper("autocomplete");
     autocomplete();
 }
	</div>

	<script src="js/jquery-1.10.2.js"></script>
	<script src="js/ui/jquery-ui.js"></script>


	<!-- Auto complete -->
	<script>
	$(function pac() {
		var nome_paciente = <?php 
include_once 'b_funcoes.php';
echo json_encode(autocomplete('paciente'));
?>
;
		$("#pacpront").autocomplete({source: nome_paciente});

        var nome_medico = <?php 
//include_once 'b_funcoes.php';
echo json_encode(autocomplete('funcionario'));
?>
;
        $("#medpront").autocomplete({source: nome_medico});
	});
	</script>


	<!--Validacao JS -->
	<script src="js/validacaoprontuario.js"></script>
	</body>
</html>