diff --git a/README.md b/README.md
index b7995c1..4fd82fe 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,19 @@
-# poll
+### poll
-Модуль Опросы/Голосование Только для AVE.CMS ALT
\ No newline at end of file
+## Модуль Опросы/Голосование v1.26.1a
+
+
+### Данный модуль предназачен для организации системы опросов на сайте.
+
+ * Возможности модуля позволяют создавать неограниченное количество опросных листов, а также неограниченное количество вопросов.
+ * Добавить в .htaccess (вне секции | Rewrite engine )
+
+ ### Poll
+ RewriteRule ^poll-([0-9]+).html$ index.php?module=poll&action=result&pid=$1
+ RewriteRule ^pollcomment-([0-9]+).html$ index.php?module=poll&action=form&pop=1&pid=$1
+ RewriteRule ^poll-archive.html$ index.php?module=poll&action=archive
+### Changelog:
+
+04.09.2019 - версия 1.26.1а - адаптация для ave.cms 3.26
+
+22.09.2013 - версия 1.1a
\ No newline at end of file
diff --git a/ReadMe.txt b/ReadMe.txt
new file mode 100644
index 0000000..a1834cf
--- /dev/null
+++ b/ReadMe.txt
@@ -0,0 +1,7 @@
+ .htaccess
+
+
+ ## Poll
+ RewriteRule ^poll-([0-9]+).html$ index.php?module=poll&action=result&pid=$1
+ RewriteRule ^pollcomment-([0-9]+).html$ index.php?module=poll&action=form&pop=1&pid=$1
+ RewriteRule ^poll-archive.html$ index.php?module=poll&action=archive
\ No newline at end of file
diff --git a/admin/admin_comments.tpl b/admin/admin_comments.tpl
new file mode 100644
index 0000000..699aea4
--- /dev/null
+++ b/admin/admin_comments.tpl
@@ -0,0 +1,78 @@
+
| {#POLL_PUB_TITLE#} | +{#POLL_PUB_START#} | +{#POLL_PUB_END#} | +{#POLL_ARCHIVE_HITS#} | +
| {$item->poll_title} | +{$item->poll_start|date_format:$DATE_FORMAT|pretty_date} | +{$item->poll_end|date_format:$DATE_FORMAT|pretty_date} | +{$item->votes} | +
{#POLL_COMMENT_ERROR#}
++ + {else} + + {/if} +
{$poll->poll_title}
+ \ No newline at end of file diff --git a/templates/poll_nav_result.tpl b/templates/poll_nav_result.tpl new file mode 100644 index 0000000..b94079e --- /dev/null +++ b/templates/poll_nav_result.tpl @@ -0,0 +1,15 @@ +{$poll->poll_title}
++ {foreach from=$items item=item} +
{$poll->message}
{/if} + \ No newline at end of file diff --git a/templates/result.tpl b/templates/result.tpl new file mode 100644 index 0000000..1a3d39a --- /dev/null +++ b/templates/result.tpl @@ -0,0 +1,181 @@ +{literal} + +{/literal} + + + + +| {#POLL_QUESTION_LIST#} | +{#POLL_RESULT_INFO#} | +||
|---|---|---|---|
| {$item->poll_item_title|escape} | + {$item->poll_item_hits} |
+
+
+
+ sum}%{else}1%{/if};height:12px;background-color:{$item->poll_item_color}">
+
+ |
+ {$item->sum} % |
+
| {#POLL_INFOS#} | +|
|---|---|
| {#POLL_ALL_HITS#} | +{$poll->votes} | +
| {#POLL_PUB_STATUS#} | +{if $poll->poll_end > $smarty.now}{#POLL_ACTIVE_INFO#}{else}{#POLL_INACTIVE_INFO#}{/if} | +
| {#POLL_STARTED#} | +{$poll->poll_start|date_format:$TIME_FORMAT|pretty_date} | +
| {#POLL_ENDED#} | +{$poll->poll_end|date_format:$TIME_FORMAT|pretty_date} | +
| {#POLL_GROUPS_PERM#} | +{$poll->groups|escape} | +
| + + | +
|
+ {$comment->poll_comment_title|escape} + {$comment->poll_comment_text} + |
+