Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<STYLE TYPE='text/css'>BODY, input, select, table {font-size: 12px;font-family: Arial,Helvetica,FreeSans,'sans - serif';} 
</STYLE>
<div id='feedback-main-div' style='font-size: 12px; font-family: Arial,Helvetica,FreeSans,sans-serif'> 
<div id='feedback-error'></div>
<form class="aui" enctype='multipart/form-data' id='feedback-form' name='feedback-form' target='feedback-response' method='post' action='http://jira.teamlead.ru/plugins/servlet/feedback/create'> 

<input type='hidden' name='form-index' id='form-index' value='2'/> 
<div> 
<input type='hidden' id='feedback-summary' name='feedback-summary' size='60' value='Запрос на хостинг'/> 
</div> 

<table border="0"> 
<tr> 
<td>Приложение для хостинга</td> 
<td><select class="select" id='customfield_13241' name='customfield_13241'>
<option value='11484' selected>JIRA</option>
<option value='11485'>Confluence</option>
</select>
</td> 
</tr> 
<tr> 
<td>Количество пользователей</td> 
<td><select class="select" id='customfield_12647' name='customfield_12647'> 
<option value='11297' selected >10</option> 
<option value='11298'>25</option> 
<option value='11299'>50</option> 
</select></td> 
</tr>
<tr> 
<td>Адрес вашей инсталляции</td> 
<td><input class="text" type='text' id='customfield_12740' name='customfield_12740' placeholder='пример: jira-youcompany.teamlead.ru' size='40' value=''/> (можно использовать свой домен)</td> 
</tr> 


<tr> 
<td>Примечания</td> 
<td><TEXTAREA class="textarea long-field" id='feedback-body' name='feedback-body' COLS='66' ROWS='4'></TEXTAREA></td> 
</tr> 
<tr> 
<td>E-mail вашего администратора</td> 
<td><input class="text" type='text' id='feedback-email' name='feedback-email' size='38' value=''/></td> 
</tr> 
<tr> 
<td></td> 
<td><br><input class="aui-button aui-button-primary" type='button' value=' Отправить запрос на хостинг ' onclick='addFeedback()'/></td> 
</tr> 
</table> 
</form> 
</div> 
<iframe id='feedback-response' name='feedback-response' frameborder='no' style='display: none' width='610' height='130'></iframe><div id='feedback-new-issue-div'><input class="aui-button aui-button-primary" type='button' id='feedback-new-issue-button' value='Создать еще один запрос'></div><script type='text/javascript'> 
jQuery(window).load(function() 
{ 
jQuery('#feedback-main-div').show(); 
jQuery('#feedback-new-issue-div').hide(); 
jQuery('#feedback-response').hide(); 
jQuery('#feedback-new-issue-button').click(function () 
{ 
jQuery('#feedback-form')[0].reset(); 
jQuery('#feedback-main-div').show(); 
jQuery('#feedback-new-issue-div').hide(); 
jQuery('#feedback-response').hide(); 
}); 
}); 
function addFeedback() { 
var summary = jQuery('#feedback-summary').val(); 
var email = jQuery('#feedback-email').val(); 
var adress = jQuery('#customfield_12740').val(); 
if (summary.trim() == '' || email.trim() == '' || adress.trim() == '') 
{ 
var message = ''; 
if (summary.trim() == '') 
{ 
message = message + '<div><h3>Введите тему обращения</h3></div>'; 
} 
if (email.trim() == '') 
{ 
message = message + '<div><h3>Введите E-mail администратора вашего хостинга</h3></div>';
} 
if (adress.trim() == '') 
{ 
message = message + '<div><h3>Введите адрес вашей инсталляции</h3></div>';
}
jQuery('#feedback-error').html(message); 
return false; 
} 
jQuery('#feedback-error').html(''); 
jQuery('#feedback-main-div').hide(); 
jQuery('#feedback-new-issue-div').show(); 
jQuery('#feedback-response').show(); 
jQuery('#feedback-form').submit(); 
return false; 
} 
</script> 

...