This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select size="1" id="mySelect1" name="country" class="width_200"> | |
| <option value="2819">Россия</option><option value="2821">Белоруссия</option><option value="2820">Казахстан</option><option value="2822">Украина</option> | |
| </select> | |
| Регулярка моя | |
| #<select size="1" id="mySelect1" name="country" class="width_200"> | |
| (.+?)((<option value="(\d+)">(.+?)</option>)*)(.+?) | |
| </select>#sui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if $mode eq 'add'} | |
| {if $type eq 'rasdel'}Новый | |
| {elseif $type eq 'model' or $type eq 'section'}Новая | |
| {/if} | |
| {elseif $mode eq 'edit'}Редактировать | |
| {/if} | |
| {if $type eq 'rasdel'}раздел | |
| {elseif $type eq 'section'}категори{if $mode eq 'edit'}ю{elseif $mode eq 'add'}я{/if} | |
| {elseif $type eq 'model'}модель | |
| {/if} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| set_time_limit(111111); | |
| $db_host = "localhost"; | |
| $db_user = "root"; | |
| $db_password = ""; | |
| $db_dbname = "spr"; | |
| $db_tablename = "data"; | |
| mysql_connect($db_host, $db_user, $db_password) or die("Can't connect to mysql"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Подключаем личный класс для операций по скачивания страниц: */ | |
| require_once PARSERS_BASE_DIR . '/parsers/parserOzerich.php'; | |
| function str($text) | |
| { | |
| $result = trim(htmlspecialchars_decode(strip_tags($text))); | |
| $result = str_replace(array(""","«","»", " ", "\n"), array("\"", "«", "»", " ", ""), $result); | |
| return $result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for group in groups %} | |
| <a href="timetable/{{ group }}/1/{{ selected_week }}"> | |
| <span class="cswitch{% if group.name == selected_group %} cswitch-active{% endif %}"> | |
| {{ group.name }} = {{ selected_group }} | |
| {% if group.name == selected_group %} 1111 {% endif %} | |
| </span> | |
| </a> | |
| {% endfor %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def lectors(request): | |
| lectors_data = Lector.objects.all() | |
| content = make_template('lectors.html', | |
| lectors=lectors_data,) | |
| return main_template( | |
| request, | |
| content, | |
| title='Преподаватели', | |
| current=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var texts = ["Как Вас зовут", "Ваши комментарии"]; | |
| var divs_id = ["div1", "div2"]; | |
| function check() | |
| { | |
| var elements = document.getElementsByTagName("label"); | |
| for(var i = 0; i < elements.length; i++) | |
| { | |
| var text = elements[i].innerHTML; | |
| for(var j = 0; j < texts.length; j++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var texts = ["Как Вас зовут", "Ваши комментарии"]; | |
| var divs_id = ["div1", "div2"]; | |
| function check() | |
| { | |
| var elements = document.getElementsByTagName("label"); | |
| for(var i = 0; i < elements.length; i++) | |
| { | |
| var text = elements[i].innerHTML.toUpperCase(); | |
| for(var j = 0; j < texts.length; j++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| set_time_limit(111111); | |
| $db_host = "localhost"; | |
| $db_user = "root"; | |
| $db_password = ""; | |
| $db_dbname = "spr"; | |
| $db_tablename = "data"; | |
| $log_file = "log.txt"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="notify-new" id="notify-div" style="display:{% if notification %}block{% else %}none{% endif %}">{{ notification }}</div> |