Программа ввода параметров поиска записей-резюме

Программа формирует форму, с указанными работодателем требованиями к кандидатам на работу (рисунок 3.5.1.2) и вызывает программу ObrabRabotodateli.php (<form action="ObrabRabotodateli.php" method="post" >).

<?

$rf="2"; //размер шрифта относительный

$style="font-size: 12; width: 100%";

$styleg="font-size: 12; font-weight: bolder; color: #008000; width: 100%";

$logoper="Логическая операция: ИЛИ - истина, когда любой или оба операнда истины, иначе - ложь; И - истина, когда оба операнда истины, иначе - ложь";

$logoskob="Открывающиеся круглые скобки, которые указываются слева от логического выражения из ключевых слов, например: (Программист ИЛИ Программирование ИЛИ Разработка программ) И (PHP ИЛИ Java) И MySQL И HTML";

$logzskob="Закрывающиеся круглые скобки, которые указываются справа от логического выражения из ключевых слов, например: (Программист ИЛИ Программирование ИЛИ Разработка программ) И (PHP ИЛИ Java) И MySQL И HTML";

$kluhipoiska="Ключевые слова для поиска записи: если они есть в записи-резюме, то формируется значение логического операнда равное истине, иначе - ложь и в результате формируется окончательное значение заданного логического выражения и если оно равно истине, то запись считается найденной, иначе - она игнорируется";

?>

<HTML>

<head>

<title>Запрос на поиск записей: сгруппированные скобками и операциями ключевые слова в искомых записях-резюме </title>

</head>

<body>

<form action="ObrabRabotodateli.php" method="post" >

<font size="<?=$rf; ?>"> Выберите специальность и/или введите ключевые слова в искомых резюме и, при необходимости, укажите круглые скобки, логические операции у заполненных полей и поля для сортировки, выбранных записей-резюме. </font>

<br>

<td align="center"> <style="font-size: 12; font-weight: 700">

<font size="<?=$rf; ?>" color="#0000ff"> <b>Сортировать по:</font>

<select name="sort1" title="Поле сортировки 1-го уровня" style="font-size: 12; font-weight: 700">

<option value="ns1">

<option value="Obr2Period1"> датам обучения

<option value="dr1"> датам рождения

<option value="obr2Spec1"> специальностям

<option value="obr2Kval1"> квалификациям

<option value="obr2Facultet1"> кафедрам

<option value="fio1"> фамилиям

<option value="Ocenka1"> оценкам

<option value="adress1"> адресам

<option value="pol1"> полу

</select><font size="<?=$rf; ?>"> </font>

<select name="sort2"title="Поле сортировки 2-го уровня" style="font-size: 12; font-weight: 700">

<option value="ns2">

<option value="Obr2Period2"> датам обучения

<option value="dr2"> датам рождения

<option value="obr2Spec2"> специальностям

<option value="obr2Kval2"> квалификациям

<option value="obr2Facultet2"> кафедрам

<option value="fio2"> фамилиям

<option value="Ocenka2"> оценкам

<option value="adress2"> адресам

<option value="pol2"> полу

</select><font size="<?=$rf; ?>"> </font>

<select name="sort3" title="Поле сортировки 3-го уровня" style="font-size: 12; font-weight: 700">

<option value="ns3">

<option value="Obr2Period3"> датам обучения

<option value="dr3"> датам рождения

<option value="obr2Spec3"> специальностям

<option value="obr2Kval3"> квалификациям

<option value="obr2Facultet3"> кафедрам

<option value="fio3"> фамилиям

<option value="Ocenka3"> оценкам

<option value="adress3"> адресам

<option value="pol3"> полу

</select><font size="<?=$rf; ?>"> </font>

<input type=reset value='Очистить' title="Очистить поля формы" style="font-size: 12; font-weight: 700">

</font>

<input type=submit name="Oper" title="Найти и вывести записи-резюме, которые удовлетворяют заданным условиям" value='Найти' style="font-size: 12; font-weight: 700">

<table width=100% cellspacing="0">

<tr>

<td width="10%"><input name="k" type="hidden">

<td width="70%"><input name="k" type="hidden">

<td width="10%"><input name="k" type="hidden">

<td width="10%"><input name="k" type="hidden">

<tr>

<td> <b><font size="<?=$rf; ?>">(<font color="#FF0000">*</font> </b>

<td> <b><font size="<?=$rf; ?>">Специальность и ключевые слова в искомых записях-резюме без учёта регистров</font></b>

<td> <b><font size="<?=$rf; ?>">)</font><font size="2" color="#FF0000">*</font></b>

<td> <b><font size="<?=$rf; ?>">Операция</font></b><font size="<?=$rf; ?>"> </font>

<tr>

<td><input name="so1" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="kl1" title="Специальность" style="<?=$style;?>">

<?

include "Специальности.txt";

?>

</select>

<td> <input name="sz1" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor1" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili1" >ИЛИ

<option value="i1" >И

</select>

<tr>

<td><input name="so2" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl2" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz2" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor2" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili2" >ИЛИ

<option value="i2" >И

</select>

<tr>

<td><input name="so3" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl3" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz3" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor3" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili3" >ИЛИ

<option value="i3" >И

</select>

<tr>

<td><input name="so4" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl4" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz4" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor4" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili4" >ИЛИ

<option value="i4" >И

</select>

<tr>

<td><input name="so5" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl5" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz5" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor5" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili5" >ИЛИ

<option value="i5" >И

</select>

<tr>

<td><input name="so6" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl6" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz6" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor6" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili6" >ИЛИ

<option value="i6" >И

</select>

<tr>

<td><input name="so7" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl7" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz7" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor7" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili7" >ИЛИ

<option value="i7" >И

</select>

<tr>

<td><input name="so8" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl8" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz8" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor8" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili8" >ИЛИ

<option value="i8" >И

</select>

<tr>

<td><input name="so9" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl9" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz9" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor9" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili9" >ИЛИ

<option value="i9" >И

</select>

<tr>

<td><input name="so10" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl10" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz10" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor10" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili10" >ИЛИ

<option value="i10" >И

</select>

<tr>

<td><input name="so11" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl11" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz11" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor11" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili11" >ИЛИ

<option value="i11" >И

</select>

<tr>

<td><input name="so12" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl12" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz12" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor12" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili12" >ИЛИ

<option value="i12" >И

</select>

<tr>

<td><input name="so13" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl13" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz13" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor13" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili13" >ИЛИ

<option value="i13" >И

</select>

<tr>

<td><input name="so14" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl14" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz14" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor14" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili14" >ИЛИ

<option value="i14" >И

</select>

<tr>

<td><input name="so15" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl15" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz15" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor15" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili15" >ИЛИ

<option value="i15" >И

</select>

<tr>

<td><input name="so16" title="<?=$logoskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><input name="kl16" title="<?=$kluhipoiska ;?>" style="<?=$style;?>">

<td><input name="sz16" title="<?=$logzskob ;?>" maxlength=16 style="<?=$styleg;?>">

<td><select name="andor16" title="<?=$logoper;?>" style="<?=$styleg;?>">

<option value="ili16" >ИЛИ

<option value="i16" >И

</select>

</table>

<font size="<?=$rf; ?>"><font color="#FF0000"></b>* - количество левых и правых круглых скобок должны совпадать иначе выводится сообщение об ошибке.<span lang="en-us"> </span>

</font><br>

Пример: выбрать студентов, которые умеют программировать на

языках PHP или Java и знают СУБД MySQL и HTML:<br>

<b><font color="#008000">(</font>Программист <font color="#008000">ИЛИ</font> Программирование<font color="#008000">

ИЛИ </font>Разработка программ<font color="#008000">)</font>

<font color="#008000">И</font>&nbsp; <font color="#008000">(</font>PHP

<font color="#008000">ИЛИ </font> Java<font color="#008000">)

</font>&nbsp;<font color="#008000">И</font> MySQL <font color="#008000">И</font> HTML</b> </font>

</form>

</body>

</HTML>








Дата добавления: 2015-04-15; просмотров: 760;


Поиск по сайту:

При помощи поиска вы сможете найти нужную вам информацию.

Поделитесь с друзьями:

Если вам перенёс пользу информационный материал, или помог в учебе – поделитесь этим сайтом с друзьями и знакомыми.
helpiks.org - Хелпикс.Орг - 2014-2024 год. Материал сайта представляется для ознакомительного и учебного использования. | Поддержка
Генерация страницы за: 0.049 сек.