예제 #1
0
function AddUser($login)
{
    $objResponse = new xajaxResponse();
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/freelancer.php";
    $user = new users();
    $user->GetUser($login);
    if ($user->login && !is_emp($user->role) && !$user->is_banned && $user->active == 't') {
        $inner = "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n<tr>\n\t<td width=\"60\">" . view_avatar($user->login, $user->photo) . "</td>\n\t<td valign=\"top\"><a href=\"/users/" . $user->login . "\" class=\"frlname11\" title=\"" . $user->uname . " " . $user->usurname . "\">" . $user->uname . " " . $user->usurname . " [" . $user->login . "]" . "</a> \n\t<a href=\"javascript:reload_form();\" class=\"blue\">изменить</a></td>\n</tr>\n</table>";
        $objResponse->assign("usersel", "innerHTML", $inner);
        $objResponse->script("document.getElementById('next').disabled = false;document.getElementById('login').value = '" . $login . "';");
    } else {
        $objResponse->script("reload_form();\n\t\t document.getElementById('usersel').innerHTML = document.getElementById('usersel').innerHTML + '" . ref_scr(view_error("Такого фрилансера не существует")) . "';\n\t\t document.getElementById('elogin').value = '" . $login . "';");
    }
    return $objResponse;
}
예제 #2
0
function AddUser($login)
{
    $objResponse = new xajaxResponse();
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer.php';
    $user = new users();
    $user->GetUser($login);
    if ($user->login && !is_emp($user->role) && !$user->is_banned && $user->active == 't') {
        $inner = '<table cellspacing="0" cellpadding="0" border="0">
<tr>
	<td width="60">' . view_avatar($user->login, $user->photo) . '</td>
	<td valign="top"><a href="/users/' . $user->login . '" class="frlname11" title="' . $user->uname . ' ' . $user->usurname . '">' . $user->uname . ' ' . $user->usurname . ' [' . $user->login . ']' . '</a> 
	<a href="javascript:reload_form();" class="blue">изменить</a></td>
</tr>
</table>';
        $objResponse->assign('usersel', 'innerHTML', $inner);
        $objResponse->script("document.getElementById('next').disabled = false;document.getElementById('login').value = '" . $login . "';");
    } else {
        $objResponse->script("reload_form();\n\t\t document.getElementById('usersel').innerHTML = document.getElementById('usersel').innerHTML + '" . ref_scr(view_error('Такого фрилансера не существует')) . "';\n\t\t document.getElementById('elogin').value = '" . $login . "';");
    }
    return $objResponse;
}
예제 #3
0
	<tr>
		<td>
			Заголовок: <input type="text" name="name" value="<?php 
echo $val['subj'];
?>
">
		</td>
	</tr>
	<tr>
		<td height="115">
			<textarea cols="10" rows="7" name="msg" class="wdh100"><?php 
echo input_ref($val['msg']);
?>
</textarea>
			<?php 
if ($alert[2]) {
    print view_error($alert[2]);
}
?>
		</td>
	</tr>
	<tr>
		<td align="right"><input type="hidden" name="MAX_FILE_SIZE" value="100000">
			<input type="hidden" name="action" value="post_msg"><input type="submit" name="btn" class="btn" value="Сохранить">
			<input type="hidden" name="role" value="emp">
		</td>
	</tr>
	<tr><td colspan="3">&nbsp;</td></tr>
</table>
</form>
예제 #4
0
?>

<h2 class="b-layout__title b-layout__title_padbot_30">Пользовательский контент / Смены</h2>

<?php 
if ($_SESSION['admin_shifts_success']) {
    unset($_SESSION['admin_shifts_success']);
    ?>
  <div>
    <img src="/images/ico_ok.gif" alt="" border="0" height="18" width="19"/>&nbsp;&nbsp;Изменения внесены.
  </div>
  <br/><br/>
<?php 
}
if ($error) {
    print view_error($error) . '<br/>';
}
?>

<form method="post" name="form_shifts" id="form_shifts">
    <input type="hidden" name="cmd" value="go">
<?php 
if (is_array($aDelId) && count($aDelId)) {
    foreach ($aDelId as $aOne) {
        ?>
<input type="hidden" name="del_id[]" value="<?php 
        echo $aOne;
        ?>
"><?php 
    }
}
예제 #5
0
          <input name="id[]" type="hidden" value="<?php 
    echo $grp['id'];
    ?>
"/>
							<div class="b-input">
          <input class="b-input__text" maxlength="<?php 
    echo commune::GROUP_NAME_MAX_LENGTH;
    ?>
" name="name[]" type="text" value="<?php 
    echo $grp['name'];
    ?>
"/>
       </div>
							   <?php 
    if ($alert['name[]'][$grp['id']]) {
        print view_error($alert['name[]'][$grp['id']]);
    }
    ?>
        </td>
        <td>
							<div class="b-input">
          <input class="b-input__text" maxlength="<?php 
    echo commune::GROUP_DESCR_MAX_LENGTH;
    ?>
" type="text" name="descr[]" value="<?php 
    echo $grp['descr'];
    ?>
"/>
       </div>
        </td>
        <?php 
예제 #6
0
<?php

if ($prj) {
    ?>
<table width="100%" cellspacing="0" cellpadding="19" border="0">
	<tr>
	<td>
	<?php 
    if ($prj['closed'] == 't') {
        print '<div align="center">' . view_error('Проект закрыт') . '</div>';
    }
    ?>
	Бюджет: <?php 
    echo CurToChar($prj['cost'], $prj['currency']);
    ?>
<br><br>
	<?php 
    if ($prj['name']) {
        ?>
<strong><?php 
        echo $prj['name'];
        ?>
</strong><?php 
    }
    ?>
<br>
	<?php 
    echo reformat($prj['descr'], 96);
    ?>
<br><br>
	<?php 
예제 #7
0
            <input class="b-check__input" id="finance_safety_phone" name="finance_safety_phone" value="t" type="checkbox" <?= ( $reqv['is_safety_mob'] == 't' ? 'checked="checked"' : '' );?> <?= ( $reqv['is_activate_mob'] == 't' ? '' : 'disabled');?>/> <label class="b-check__label b-check__label_fontsize_13" >Вход на страницу &laquo;Финансы&raquo; &mdash; только через код из смс-сообщения</label>
        </div>*/
?>
 
        <a name="safety_password"></a>
		<h3 class="b-layout__h3 b-layout__h3_padtop_30">Подтверждение изменений</h3>
		<div class="b-form b-form_padbot_40 b-form_width_full">
			<label class="b-form__name b-form__name_fontsize_13 b-form__name_padbot_10">Для сохранения внесенных изменений введите ваш текущий пароль:</label>
			<div class="b-input b-input_width_160">
				<input id="password" class="b-input__text b-input__text_width_160" type="password" name="password" onKeyPress="return submitEnter(this,event)" />
			</div>
			<?php 
if ($alert[3]) {
    ?>
                    <?php 
    echo view_error($alert[3]);
    ?>
            <?php 
}
?>
		</div>
		<a class="b-button b-button_flat b-button_flat_green" onclick="safetyForm('f');" href="javascript:void(0)">Сохранить изменения</a>
</form>	
</div>
<div class="b-shadow b-shadow_zindex_11 b-shadow_center b-shadow_width_450" id="auth_popup" style="display:none"></div>
<?php 
if ($alert[1] || $alert[3]) {
    ?>
	<script type="text/javascript">
	<?php 
    if ($alert[1]) {
예제 #8
0
?>
;
    var opinion_error_limit = '<?php 
print ref_scr(view_error('Исчерпан лимит символов для поля (??? символов)'));
?>
';
    var opinion_error_empty = '<?php 
print ref_scr(view_error('Поле не должно быть пустым!'));
?>
';
    var opinion_error_rating = '<?php 
print ref_scr(view_error('Выберите характер мнения.'));
?>
';
    var comment_error_empty = '<?php 
print ref_scr(view_error('Комментарий не должен быть пустым!'));
?>
';
</script>

<?php 
if ($ops_type == 'total') {
    include_once dirname(__FILE__) . '/opinions/tpl.total_opinions.php';
} elseif ($ops_type == 'norisk') {
    if ($is_transfer) {
        include_once dirname(__FILE__) . '/tpl.advice-edit.php';
    } else {
        if ($edit === 0) {
            include_once dirname(__FILE__) . '/tpl.advices.php';
        } else {
            if ($edit > 0) {
예제 #9
0
" />
									   </div>
									   <div>
									       <label>Ссылка:</label>
									       <input type="text" name="link_client" value="<?php 
                echo $action == 'edit_client' ? $link : $client['link_client'];
                ?>
" />
									   </div>
									</div>
                                </div>
                            </div>
                            
                            <?php 
                if ($error_edit) {
                    print view_error($error_edit);
                }
                ?>
                            
                            <div class="form-btns">
                                <input type="submit" value="Применить" class="i-btn i-bold" />
								<input type="button" value="Отменить" class="i-btn" onClick="document.location = '/clients/?a=1<?php 
                echo $upage;
                ?>
'"/>
							</div>
						</div>
						</form>
						<b class="b2"></b>
						<b class="b1"></b>
					</div>
예제 #10
0
function ChangePortfPrice($proj_id, $cost, $cost_type, $time_type, $time_value)
{
    global $session;
    session_start();
    $objResponse = new xajaxResponse();
    $portf = new portfolio();
    $proj_id = intval($proj_id);
    $cost = intval(str_replace(' ', '', $cost) * 100) / 100;
    $cost_type = intval($cost_type);
    $time_type = intval($time_type);
    $time_value = intval($time_value);
    $error = $portf->ChangePortfPrice($_SESSION['uid'], $proj_id, $cost, $cost_type, $time_type, $time_value);
    if ($error == '') {
        $script = "document.getElementById('prj_cost_{$proj_id}').value = {$cost};\n\t\tdocument.getElementById('prj_cost_type_{$proj_id}').value = {$cost_type};\n\t\tdocument.getElementById('prj_time_type_{$proj_id}').value = {$time_type};\n\t\tdocument.getElementById('prj_time_value_{$proj_id}').value = {$time_value};";
        $objResponse->script($script);
        $objResponse->assign("prj_msg_{$proj_id}", 'innerHTML', view_info('Данные сохранены'));
    } else {
        $objResponse->assign("prj_msg_{$proj_id}", 'innerHTML', view_error($error));
    }
    return $objResponse;
}
예제 #11
0
x<?php 
echo commune::MSG_IMAGE_MAX_HEIGHT;
?>
 пикселей. <?php 
echo commune::MSG_IMAGE_MAX_SIZE / 1024;
?>
 Кб. </li>
            <li>
                Вы можете прикрепить до <?php 
echo commune::MAX_FILES;
?>
 файлов общим объемом не более <?php 
echo commune::MAX_FILE_SIZE / (1024 * 1024);
?>
 Мб.<br/>
                Файлы следующих форматов запрещены к загрузке: <?php 
echo implode(', ', $GLOBALS['disallowed_array']);
?>
            </li>
        </ul>
    </div>
    <script type="text/javascript">
        new mAttach(document.getElementById('attaches'), <?php 
echo commune::MAX_FILES - $max;
?>
);
    </script>
    <br/><?php 
echo $error ? view_error($error) . '<br/>' : '';
?>
</div>
예제 #12
0
    /**
     * Функция генерирует HTML для формы добавдения отзыва
     * 
     * @param integer $sid пользоваль, от которого будут осталяться сообщения
     * @param integer $uid пользоваль, которому будут осталяться сообщения
     * @param string $from (frl|emp|my|norisk)
     * @return string html формы
     * 
     * 
     * @deprecated #0015627
     */
    public static function printAddForm($sid, $uid, $from)
    {
        return false;
        @session_start();
        if ($sid == $uid || in_array($from, array('my', 'norisk1'))) {
            return '';
        }
        $can_post = 1;
        if ($sid) {
            $can_post = opinions::CheckUserCanPost($sid, $uid);
        }
        if ($from == 'norisk') {
            $can_post = 0;
        }
        $html = '';
        if (!$can_post) {
            if ($from == 'norisk') {
                // форма для СБР
                $html = '<div id="rating-tpl" style="display: none; float: right; margin: 0pt 0pt 0pt 25px; width: 270px;">
                        <p style="margin: 0 0 11px 0;">Пожалуйста оцените сотрудничество с фрилансером по трем критериям.</p>
                    </div>
                    <div id="message-tpl" style="margin: 0pt 295px 0pt 0pt; display:none;">
                        <form method="POST">
						<div>
                            <input type="hidden" name="id" value="" />
                            <input type="hidden" name="stage_id" value="" />
                            <input type="hidden" name="p_rate" value="" />
                            <input type="hidden" name="n_rate" value="" />
                            <input type="hidden" name="a_rate" value="" />
                            <input type="hidden" name="login" value="" />
                            <textarea name="to_user_feedback" rows="5" cols="20" style="width:95%;height:95px;" onkeydown="check_length(this)"></textarea>
                            <div class="errorBox" style="display:none;">
                                <img width="22" height="18" src="/images/ico_error.gif" alt="" />
                                <span></span>
                            </div>
                            <div style="padding: 5px 0 0 0;">
                                <input type="button" value="Сохрaнить" style="overflow: visible; padding: 0 10px; font-weight: 900; color: #333;" onclick="saveRating()" />
                                <input type="button" value="Отменить" style="overflow: visible; padding: 0 10px; color: #333;" onclick="closeForm()" />
                            </div>
							</div>
                        </form>
                    </div>';
            } else {
                // Форма для простого отзыва
                $html .= '
<form action="" method="post" name="frm_add" id="frm_add">
<div>
                        <input type="hidden" name="r" value="' . $_SESSION['rand'] . '" />
                        <input type="hidden" name="rating" value="" id="rating_add" />
                        <input type="hidden" name="action" id="action_com" value="new" />

                        <div class="ops-add-in">
                            <a class="btn btn-green3 ops-frm-toggler" href="javascript:void(0);" onclick="showOpinionsForm(this)" ><span class="btn-lc"><span class="btn-m"><span class="btn-txt">Выразить мнение</span></span></span></a>
                            <div class="ops-add-full " id="add_form_cont">
                                <p>Если вам приходилось работать с этим человеком, вы можете оставить мнение о нем как о личности и профессионале. Пожалуйста, внимательно отнеситесь к этому полю, так как удалить или изменить мнение сможете только вы. Помните, что своими словами вы влияете на профессиональную репутацию пользователя.</p>
                                <div class="form ops-form">
                                    <div class="form-el" style="height:20px">
                                        <label>Характер мнения:</label>
                                        <ul class="ops-type" id="ops-type">
                                            <li>
												<a rel="1" onclick="setRating(this); return false" href="#" class="lnk-dot-green">Положительный</a>
											</li>
											<li>
												<a rel="0" onclick="setRating(this); return false" href="#" class="lnk-dot-666">Нейтральный</a>
											</li>
											<li>
												<a rel="-1" onclick="setRating(this); return false" href="#" class="lnk-dot-red">Отрицательный</a>
											</li>
                                        </ul>
                                    </div>
                                    <div class="form-el"  style="font-size:10px">
                                        <span class="no-more">Не более ' . self::$opinion_max_length . ' символов</span>
                                        <textarea rows="5" cols="20" id="msg" name="msg" onkeydown="$(\'error_msg\').set(\'html\', \'\');"></textarea>
                                        <div id="error_msg"></div>
                                    </div>
                                    <div id="rating_error" style="display:hidden"></div>
                                                    <div class="form-btn">
                                                        <a href="javascript:void(0);" id="btn-send-opinions" class="btnr btnr-t" onclick="opinionSubmitAddForm(' . $sid . ', ' . $uid . ', \'' . $from . '\'); return false;"><span class="btn-lc"><span class="btn-m"><span class="btn-txt" id="btn">Выразить мнение</span></span></span></a>&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <a href="javascript:void(0);" onclick="hideOpinionsForm(this)" class="lnk-dot-666">Отменить</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
										</div>
                                    </form>';
            }
            return '<div class="ops-add" id="form_container">' . $html . '</div>';
        } elseif ($can_post != 0 && $from != 'my') {
            $deny_text = "Вы не можете оставить мнение об этом пользователе:";
            $html = '
                <div class="ops-add-in"  style="font-size:12px">';
            switch ($can_post) {
                case 1:
                    $html .= view_error($deny_text . ' Вы не <a href="/registration/">зарегистрированы</a> или не авторизованы.');
                    break;
                case 2:
                    $html .= view_error($deny_text . ' С момента регистрации Вашего аккаунта прошло меньше месяца.');
                    break;
                case 3:
                    $html .= view_error('Вы уже выразили свое мнение о данном пользователе.');
                    break;
            }
            $html .= '</div>';
            if ($can_post == 3 && ($from == 'frl' && is_emp() || $from == 'emp' && !is_emp())) {
                return '';
            }
            return '<div class="ops-add" id="form_container">' . $html . '</div>';
        }
        return false;
    }
예제 #13
0
<?php

if ($prj) {
    ?>
<table width="100%" cellspacing="0" cellpadding="19" border="0">
	<tr>
	<td>
	<?php 
    if ($prj['closed'] == "t") {
        print "<div align=\"center\">" . view_error("Проект закрыт") . "</div>";
    }
    ?>
	Бюджет: <?php 
    echo CurToChar($prj['cost'], $prj['currency']);
    ?>
<br><br>
	<?php 
    if ($prj['name']) {
        ?>
<strong><?php 
        echo $prj['name'];
        ?>
</strong><?php 
    }
    ?>
<br>
	<?php 
    echo reformat($prj['descr'], 96);
    ?>
<br><br>
	<?php 
예제 #14
0
        } else {
            ?>
      <li><a href="<?php 
            echo $href;
            ?>
&sub_ord=favs_list" class="lnk-dot-666">Списком</a></li>
      <?php 
        }
        ?>
    </ul>
    <?php 
    }
    ?>
    <?php 
    if ($error) {
        print "<div>" . view_error($error) . "</div>";
    }
    ?>
    <?php 
    if ($themes) {
        $theme = current($themes);
        $i = 0;
        /**/
        do {
            $i++;
            if ($theme['reply_to']) {
                // comment
                $allow_del = $theme['login'] == $_SESSION['login'] ? 1 : 0;
                $cnt_role = substr($theme['role'], 0, 1) == '0' ? "frl" : "emp";
                if ($theme['attach'] && is_array($theme['attach'])) {
                    $attach_html = '';
예제 #15
0
              <input type="hidden" name="question" value="<?php 
                echo isset($_POST['question']) ? str_replace(array('"', "'", "\\"), array('&quot;', '&#039;', '&#92;'), stripslashes($_POST['question'])) : ($edit_msg['poll_question'] ? $edit_msg['poll_question'] : '');
                ?>
">
              <textarea id="poll-question" style=" width:554px !important" name="no_question" disabled onfocus="isFocus = true;" onblur="isFocus = false;" cols="50" rows="20"></textarea>
              <?php 
            } else {
                ?>
              <textarea id="poll-question" style=" width:554px !important" name="question" onfocus="isFocus = true;" onblur="isFocus = false;" cols="50" rows="20"></textarea>
              <?php 
            }
            ?>
              <div id="poll-warn">&nbsp;</div>
              <?php 
            if (isset($alert) && is_array($alert) && $alert[5]) {
                print view_error($alert[5]);
            }
            ?>
            </td>
                      </tr>
            <tr id="trpolltype" class="poll-type"<?php 
            echo !empty($alert[5]) || $edit_msg['poll_question'] ? '' : ' style="display: none"';
            ?>
>
              <td>Тип опроса:</td>
              <td style="padding-top:5px;">
              	  <div class="b-radio  b-radio_layout_horizontal">
                  	<div class="b-radio__item">
                      <input id="fmultiple0" class="b-radio__input" type="radio" name="multiple" value="0" <?php 
            echo $edit_msg['poll_multiple'] != 't' && empty($_POST['multiple']) ? "checked='checked'" : "";
            ?>
예제 #16
0
 disabled="disabled"<?php 
        }
        ?>
 />
  <input type="submit" id="ps_pict_add" name="ps_pict_add" value="Загрузить"<?php 
        if ($prj_kind != 2 && !$is_pro && !$is_adm) {
            ?>
 disabled="disabled"<?php 
        }
        ?>
 />
  <?php 
        if ($error) {
            ?>
  <?php 
            echo view_error($err);
            ?>
<br/>
  <?php 
        }
        ?>
  </form>
<?php 
    }
    ?>
</body>
</html>
<?php 
} else {
    if (preg_match('~/projects/\\?pid=([\\d]+)~i', $_SERVER['HTTP_REFERER'], $aMatches)) {
        $project = new projects();
예제 #17
0
                      </div>
                      <div style="padding-top:2px">
                        Не больше шести человек
                      </div>
                      <div style="padding-top:10px">
                        <form action="." method="get">
                          <input type="hidden" name="id" value="<?php 
    echo $id;
    ?>
"/>
                          <input type="hidden" name="site" value="Admin"/>
                          <input type="hidden" name="action" value="do.Add.admin"/>
                          <input type="text" name="user_login" style="width:200px"/>&nbsp;&nbsp;
                          <input type="submit" style="width:90px" value="Добавить"/>
                          <?php 
    echo isset($alert['user_login']) ? view_error($alert['user_login']) : '';
    ?>
                        </form>
                      </div>
                    </td>
                  </tr>
                <?php 
}
?>
                <?php 
if ($adminCnt) {
    ?>
                  <tr valign="middle">
                    <td align="center">&nbsp;</td>
                    <td align="center">
                      <b>Модерирование</b>
예제 #18
0
    print view_info('Изменения внесены');
}
?>
			<?php 
if ($nParam == 1 && $_REQUEST['pfrom']) {
    ?>
				<script type="text/javascript">window.close();</script>
			<?php 
}
?>
			<input type="hidden" name="MAX_FILE_SIZE" value="102400" />
			<input type="file" name="foto" />
			<?/* if ($error) print(view_error($error)) */?>
			<?php 
if ($nParam == 2) {
    print view_error('Загружаемое изображение слишком большое. Пожалуйста, уменьшите его размер до 1000*1000 пикселов.');
}
?>
			<?php 
$aAllowedExt = array_diff($GLOBALS['graf_array'], array('swf', 'gif'));
?>
			<div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_padbot_20">Формат фото: <?php 
echo implode(', ', $aAllowedExt);
?>
</div>
        <?php 
if ($_SESSION['photo']) {
    ?>
            <div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_padbot_20"><a class="b-layout__link" href="#" onClick="if (warning(6)) { frm.del.value='1'; frm.submit(); } else return(false);"><img class="b-layout__pic" src="/images/ico_close.gif" alt="" width="9" height="9" /></a>&nbsp;<a class="b-layout__link" href="#" onClick="if (warning(6)) { frm.del.value='1'; frm.submit(); } else return(false);">Удалить фотографию</a></div>
        <?php 
}
예제 #19
0
$sEndVal = $_GET['edate'] ? $_GET['edate'] : date('d-m-Y');
?>


<h3>Отчет по арбитражу</h3>

<form id="frm" name="frm" action="/siteadmin/norisk2/" method="get">
<input type="hidden" name="site" value="arbitrage">
<input type="hidden" name="export" value="go">
<div class="m-cl-bar c">
	<div class="m-cl-bar-sort3">
		Отчет по арбитражу
		с: <input class="plain" name="ds" value="<?php 
echo date('d-m-Y', $ds);
?>
" size="12" style="border: 1px solid #DFDFDF; height: 21px"><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fStartPop(document.frm.ds,document.frm.de);return false;"><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
        по: <input class="plain" name="de" value="<?php 
echo date('d-m-Y', $de);
?>
" size="12" style="border: 1px solid #DFDFDF; height: 21px"><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fEndPop(document.frm.ds,document.frm.de);return false;"><img class="PopcalTrigger" align="absmiddle" src="DateRange/calbtn.gif" width="34" height="22" border="0" alt=""></a>
		<input type="submit" value="Экспорт в Excel" class="i-btn" />
	</div>
</div>
</form>

<?php 
echo $sError ? view_error($sError) : '';
?>

<iframe width=132 height=142 name="gToday:contrast" id="gToday:contrast" src="DateRange/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
예제 #20
0
    color:#aa0000;
    text-align:center;
    width:100%;
    padding-bottom: 7px;
}
</style>
[<a href="/siteadmin/ban_promo/">назад</a>]<br/><br/>
<strong>Редактирование баннера «<a href="?type=<?php 
echo $bpromo->info['id'];
?>
"><?php 
echo htmlspecialchars(stripslashes($bpromo->info['name']));
?>
</a>»</strong><br/><br/>
<div class="b-layout b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_lineheight_13 b-layout__txt_padbot_10 b-layout__txt_color_c4271f b-layout_hide" id="banner-error"></div>
<?if($error_string) print(view_error($error_string))."<br/>";?>

<?if($success_string) print("<strong style='color:green'>".$success_string."</strong><br/>");?>
<script type="text/javascript">
var maxW = 165;
window.addEvent("load", checkLinkWidth);
function checkLinkWidth() {
    var ls = $('linkpreview').getElements("li.b-menu__banner");
    for (var i = 0; i < ls.length; i++) {
        if (ls[i].clientWidth > maxW) {
            $('banner-error').set('text', "Ширина ссылки превышает " + maxW + " пикселей").removeClass('b-layout_hide');
        }else {
            var wText = 0;
            var links = ls[i].getElements("a.b-menu__link-banner");
            if (links.length > 0) {
                wText = links[0].clientWidth;
예제 #21
0
}
//else
?>
			</div>		
        

			
      <p class="add-btn"><input id="payBtn" type="image"<?php 
echo $account->sum < $price && $account->bonus_sum < $price ? ' disabled' : '';
?>
 src="<?php 
echo $tmpPrj->isEdit() ? '/images/save-payed.png' : '/images/add-payed.png';
?>
" width="157" height="52" alt="Оплатить и сохранить" /></p>
      <?php 
echo $error['buy'] ? view_error($error['buy']) : '';
?>

      <div<?php 
echo $account->sum >= $price || $account->bonus_sum >= $price ? ' style="display:none"' : '';
?>
 id="nomnyBox">
        <p class="error-color"><strong>У вас на счету не хватает <span id="nomnySum"><?php 
echo round($price - $account->sum);
?>
</span> руб.</strong></p>
        <p class="add-btn"><input onclick="document.getElementById('publicForm').action.value='bill'"type="image" src="/images/add-payed2.png" width="150" height="24" alt="Пополнить счет" /></p>
      </div>
    </div>
    <div>
      <br/>
예제 #22
0
]" value="<?php 
                echo htmlspecialchars($_attached['name'][$n]);
                ?>
">
    	       <?php 
            }
            // foreach
            ?>
    	    <?php 
        }
        //if
        ?>
    	    <input type="hidden" name="save" id="save_advice" value="1">
    		<div class="b-post__content b-post__content_padleft_60 b-post__content_padtop_20">
    		    <?php 
        echo isset($error['save']) ? print view_error($error['save']) : '';
        ?>
    		    
    			<div class="b-post__txt b-post__txt_fontsize_11 b-post__txt_padbot_20">Вам надо указать бюджет сделки, по которой вы сотрудничали, и прикрепить подтверждающие документы.</div>
    		    <span id="error_budget" style="<?php 
        echo isset($error['budget']) ? '' : 'display:none';
        ?>
">
    		    <?print(view_error('Минимальный бюджет проекта - ' .sbr_stages::MIN_COST_RUR_PDRD. ' руб.<br/><br/>'))?>
    		    </span>
                <span id="error_budget_format" style="display:none">
    		    <?print(view_error('Введенные данные не являются числом.<br/><br/>'))?>
    		    </span>
    			<div class="b-post__txt b-post__txt_bold b-post__txt_padbot_10">1. <?php 
        echo $error['budget'] == 1 ? '<div class="b-post__txt b-post__txt_bold b-post__txt_inline-block b-post__txt_color_c10601">Обязательно укажите бюджет проекта</div>' : 'Бюджет проекта (минимальный бюджет проекта - ' . sbr_stages::MIN_COST_RUR_PDRD . ' руб.)';
        ?>
예제 #23
0
{
	if(area.value.length > 1000)
	{
		area.value = area.value.substr(0, 1000);
		msg.innerHTML = '<?php 
print ref_scr(view_error('Исчерпан лимит символов для поля (1000 символов)'));
?>
';
	}
}

function check_com_text() {
	if((document.getElementById('po_text') != undefined) && document.getElementById('po_text').value.length > 1000) {
		document.getElementById('po_text').value = document.getElementById('po_text').value.substr(0, 1000);
		document.getElementById('po_text_msg').innerHTML = '<?php 
print ref_scr(view_error('Исчерпан лимит символов для поля (1000 символов)'));
?>
';
	}
}
//-->
</script>
<div id="debug"></div>

<?php 
//показываем попап успешной покупки ПРО после редиректа
$quickPRO_type = 'project';
require_once $_SERVER['DOCUMENT_ROOT'] . "/templates/quick_buy_pro_win.php";
?>

<?php 
예제 #24
0
" style="width: 100%;">
	   <?php 
echo $sNameError ? view_error($sNameError) : '';
?>
	</td>
</tr>
<tr>
	<td width="100" valign="top">Текст:</td>
	<td width="300">
	   <p style="padding-bottom:10px;">%USERNAME% будет автоматически заменено на ФИО пользователя.</p>
	   <textarea name="reason_text" rows="10" cols="70"><?php 
echo isset($_POST['reason_text']) ? htmlspecialchars($_POST['reason_text']) : $aReason['reason_text'];
?>
</textarea>
	   <?php 
echo $sTextError ? view_error($sTextError) : '';
?>
	</td>
</tr>
<tr>
	<td width="100" valign="top">Выделять жирным:</td>
	<td width="300">
       <?php 
$sCheched = '';
if (isset($_POST['cmd'])) {
    $sCheched = !empty($_POST['is_bold']) ? ' checked' : '';
} else {
    $sCheched = $aReason['is_bold'] == 't' ? ' checked' : '';
}
?>
        <input type="checkbox" name="is_bold" id="is_bold" value="1" <?php 
예제 #25
0
    $tdate = $tyear[$i] . "-" . $tmnth[$i] . "-" . $tday[$i];
    // -----
}
?>
<form action="?t=<?php 
echo htmlspecialchars($_GET['t']);
?>
" method="post" name="frm" id="frm">
<input type="hidden" name="action" value="">
<input type="hidden" name="forms_cnt" value="<?php 
echo $forms_cnt;
?>
">
	<?php 
if ($error) {
    print view_error($error);
}
?>

<?php 
for ($i = 0; $i < $forms_cnt; $i++) {
    $fdate = $fyear[$i] . "-" . $fmnth[$i] . "-" . $fday[$i];
    $tdate = $tyear[$i] . "-" . $tmnth[$i] . "-" . $tday[$i];
    ?>
с&nbsp;&nbsp;
<input type="text" name="fday[]" size="2" maxlength="2" value="<?php 
    echo $fday[$i];
    ?>
">
<select name="fmnth[]">
	<option value="1" <?php 
예제 #26
0
                ?>
                                    <option value="2" <?php 
                echo $last_freeze['freezed_cnt'] == 1 && $last_freeze['freezed_days'] > 7 ? 'selected="selected"' : '';
                ?>
>14 дней</option>
                                    <?php 
            }
            ?>
                                </select>
                            </div>
                        </div>
                        <?php 
            if ($freeze_error) {
                ?>
                        <?php 
                echo view_error($freeze_error);
                ?>
                        <br />
                        <?php 
            }
            ?>
                        <?php 
            $act_label = 'Заморозить';
            $act_descr = 'заморозить аккаунт';
            if ($freeze_set) {
                $act_label = 'Отменить';
                $act_descr = 'отменить заморозку';
            }
            if ($freezed_now) {
                $act_label = 'Разморозить';
                $act_descr = 'разморозить аккаунт';
예제 #27
0
    .team tbody tr.env {
        background: white
    }
    .team tbody tr.odd {
        background: whitesmoke;
    }
</style>
<strong>Команда <a href="/about/team/" target="_blank">Free-lance.ru</a></strong><br/><br/>

<form method="POST" action=".">
<input type="hidden" name="action" value="addteam">
Добавить в команду пользователя<br/>
Логин: <input type="text" name="login"> <input type="submit" value="Добавить">
<?php 
if ($error_login) {
    echo view_error(htmlspecialchars($error_login));
}
//if
?>
</form>

<form method="POST" action="." id="delform">
<input type="hidden" name="action" value="delteam">
<input type="hidden" name="login" value="" id="login_team">
</form>
<br/> 
<table class="team brd-tbl" width="100%" cellpadding="3" cellspacing="1" >
    <colgroup>
    <col width="5%">
    <col width="85%">
    <col width="10%">
예제 #28
0
				Текст:
			</td>
		</tr>
		<tr>
			<td>
                            <div class="b-textarea"><textarea cols="89" rows="17" name="resumetxt" class="b-textarea__textarea tawl" rel="4000" placeholder="<?php 
echo $_POST['resumetxt'] != "" ? antispam(htmlspecialchars(stripslashes($_POST['resumetxt']))) : input_ref($user->resume);
?>
"></textarea></div>
			</td>
		</tr>
		<?php 
if ($alert[5]) {
    ?>
		<tr><td><?php 
    echo view_error($alert[5]);
    ?>
</td></tr>
		<?php 
}
?>
		<tr>
			<td>
				Максимум 4000 знаков.<br />
				Вы можете использовать простые теги для форматирования текста.
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		</table>
예제 #29
0
	<div>
		<div id="attaches" style="padding-bottom: 5px">
			<input type="file" name="attach[]" style="width: 95%">
			<span class="addButton" style="font-size: 16px;">&nbsp;</span>
		</div>
	</div>
	</div>
	<script type="text/javascript">
		new mAttach(document.getElementById('attaches'), <?php 
echo messages::MAX_FILES;
?>
);
	</script>
	  <?php 
if ($alert[1]) {
    print view_error($alert[1]);
}
?>
	  Файлы следующих форматов запрещены к загрузке: <?php 
echo implode(', ', $GLOBALS['disallowed_array']);
?>
	  <?php 
/*
      С помощью этого поля возможно загрузить:
      <ul><li>Картинку.<br>
      Картинка публикуется ниже комментария.<br>
      Формат: gif, jpeg.<br>
      Максимальный размер картинки: 440x600 пикселей; 300 Кб.</li>
      <li>Файл.<br>
      Файл размещается под кнопкой &laquo;Загрузить&raquo; ниже комментария.<br>
      Формат: zip, rar.</li></ul> */
예제 #30
0
" value="Сохранить" /></td>
    </tr>
    </table>
  </td>

  </tr>
  </table>
  <table cellspacing="0" cellpadding="0" style="width:100%;background:<?php 
                echo $prj['prof_id'] == professions::BEST_PROF_ID || $prj['prof_id'] == professions::CLIENTS_PROF_ID ? '#fff9e3' : '#eef2fb';
                ?>
">
  <tr>
    <td style="padding:6px 12px 6px 28px;text-align:left;vertical-align:middle;">
      <?php 
                if ($error_prof && $saved_prof_id == $prj['prof_id']) {
                    print view_error($error_prof);
                }
                ?>
      <?php 
                if ($info_prof && $saved_prof_id == $prj['prof_id']) {
                    echo view_info($info_prof);
                }
                ?>
      &nbsp;
    </td>
    <td style="padding:6px 4px 6px 6px;text-align:right;vertical-align:middle;">
      <?php 
                if ($portf_cnt[professions::BEST_PROF_ID] >= portfolio::MAX_BEST_WORKS && $prj['prof_id'] == professions::BEST_PROF_ID) {
                    ?>
        Вы не можете добавить больше <?php 
                    echo portfolio::MAX_BEST_WORKS;