$sql = mysql_query(
"SELECT *
FROM logRF
where fio LIKE IFNULL('%".$_POST['fio']."%',fio)
AND data_birth LIKE IFNULL('%".$_POST['data_birth']."%',data_birth)
AND nation LIKE IFNULL('%".$_POST['nation']."%',nation)
AND sentence_court LIKE IFNULL('%".$_POST['sentence_court']."%',sentence_court)
AND court LIKE IFNULL('%".$_POST['court']."%',court)
AND term LIKE IFNULL('%".$_POST['term']."%',term)
AND documentation LIKE IFNULL('%".$_POST['documentation']."%',documentation)
AND no_documentation LIKE IFNULL('%".$_POST['no_documentation']."%',no_documentation)
AND date_exclusion LIKE IFNULL('%".$_POST['date_exclusion']."%',date_exclusion)
AND planned LIKE IFNULL('%".$_POST['planned']."%',planned)
AND ticket LIKE IFNULL('%".$_POST['ticket']."%',ticket)
AND notice LIKE IFNULL('%".$_POST['notice']."%',notice)
AND delay LIKE IFNULL('%".$_POST['delay']."%',delay)
AND hospital LIKE IFNULL('%".$_POST['hospital']."%',hospital)
AND fines LIKE IFNULL('%".$_POST['fines']."%',fines)
AND ug_fines LIKE IFNULL('%".$_POST['ug_fines']."%',ug_fines)
AND article LIKE IFNULL('%".$_POST['article']."%',article)
AND bailiff LIKE IFNULL('%".$_POST['bailiff']."%',bailiff)",$link);
echo "<td> <input type='image' value='Перейти' src='img/edit.png' onclick=\' location.href='edid.php?id={$row['id']}\'></td>";
echo "<td> <a href='edid.php?id=" . $row['id'] ."'>Редактировать</a><br/></td>";
#!/bin/sh
DIALOG=${DIALOG=dialog}
tempfile=`mktemp 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15
$DIALOG --clear --title "Мои любимые исполнители" \
--menu "Все любят песни хинди, поэтому выбирайте:" 20 51 4 \
"Rafi" "Mohammed Rafi" \
"Mukesh" "Mukesh" \
"Kishore" "Kishore Kumar" \
"Saigal" "K L Saigal" \
"Lata" "Lata Mangeshkar" \
"Yesudas" "K J Yesudas" 2> $tempfile
retval=$?
choice=`cat $tempfile`
case $retval in
0)
echo "Да вы эстет! '$choice' -- это лучшее, что вы слышали в своей жизни!"
./test2;;
1)
echo "Отказ от ввода.";;
255)
echo "Нажата клавиша ESC.";;
esac
#!/bin/sh
clear
echo ${choice}
#!/bin/bash
FILE= $1
for f1 in " cat $FILE " ; do
sshpass -p 123456 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@$f1 'date;exit'
done