1234567891011121314151617181920212223242526272829303132 |
- <?
- if (!$logged_me_in_successfully234)
- return;
-
- echo "<form id='form1' name='form1' method='post'>";
- PrintAccs();
- echo "<input type='submit' value='Применить изменения'>";
- echo "</form>
- ";
- function PrintAccs()
- {
- global $link;
- $query1 = mysqli_query($link,"select * from accounts");
- while ($res1 = mysqli_fetch_array($query1))
- {
- $id = $res1['id'];
- $name = $res1['name'];
- $active = $res1['active'];
- $login = $res1['login'];
- $email = $res1['email']==NULL ? "-": $res1['email'];;
- $skype = $res1['skype']==NULL ? "-": $res1['skype'];
- $phone = $res1['phone']==NULL ? "-": $res1['phone'];;
- $tag = "fail";
- if (intval($active==1) || intval($active==6))
- $tag = "success";
- echo "<b><$tag>$id:</$tag></b> $name [$login] <b>E-mail:</b> <a href='mailto:$email'>$email</a> <b>Skype:</b> $skype <b>Телефон:</b> $phone";
- echo "<br>";
- }
- }
- ?>
|