App.Templates.html = { help: { DNS_form: ['

Some Things You Just Can\'t Explain

\ A farmer was sitting in the neighborhood bar getting drunk. A man came in and asked the farmer, "Hey, why are you sitting here on this beautiful day, getting drunk?" The farmer shook his head and replied, "Some things you just can\'t explain."\ "So what happened that\'s so horrible?" the man asked as he sat down next to the farmer.\ "Well," the farmer said, "today I was sitting by my cow, milking her. Just as I got the bucket full, she lifted her left leg and kicked over the bucket."\ "Okay," said the man, "but that\'s not so bad." "Some things you just can\'t explain," the farmer replied. "So what happened then?" the man asked. The farmer said, "I took her left leg and tied it to the post on the left."\ "And then?"\ "Well, I sat back down and continued to milk her. Just as I got the bucket full, she took her right leg and kicked over the bucket."\ The man laughed and said, "Again?" The farmer replied, "Some things you just can\'t explain." "So, what did you do then?" the man asked.\ "I took her right leg this time and tied it to the post on the right."\ "And then?"\ "Well, I sat back down and began milking her again. Just as I got the bucket full, the stupid cow knocked over the bucket with her tail."\ "Hmmm," the man said and nodded his head. "Some things you just can\'t explain," the farmer said.\ "So, what did you do?" the man asked.\ "Well," the farmer said, "I didn\'t have anymore rope, so I took off my belt and tied her tail to the rafter. In that moment, my pants fell down and my wife walked in ... Some things you just can\'t explain."'] }, general: { loading: ['
\
Loading...
\
'], popup: ['\ '], inner_popup: ['
\
\ ×\
\ ~!:CONTENT~!\
\
\
'], select_option: [''], error_elm: ['
~!:ERROR~!
'], SUSPENDED_TPL_NOT_SUSPENDED : ['enabled'], SUSPENDED_TPL_SUSPENDED : ['disabled'] }, popup: { error: ['

Important: An Error Has Occured.


    Something went wrong and some of your actions can be not saved in system. Mostly, it happens when you have network connection errors.
,    However, please notify us about the situation. It would be helpfull if you will write us approximate time the error occured and last actions you were performing. You send your petition on this email: BLABLA,

Sorry for inconvinience. (We recommend you to reload the page)
'] }, dates: { 'lock_plan_date' : [''], 'save_forecasted_date' : [''] }, dns: { FORM: [ '
\ \ \
~!:title~!
\
\
\
\ \ \ \
\
\ \
\ \  \
\
\
\ \ ~!:TPL_DEFAULT_VALUE~!\ \ View template settings\
\
\ \ \
\
\ \ \
\
\ \ Cancel\ Help\
\
' ], ENTRIES_WRAPPER: ['
~!:content~!
'], ENTRY: ['
\ \ \
\
\
\ ~!:SUSPENDED_TPL~!\ delete\
\
\
\
~!:DATE~!
\
\
\
\
\ ~!:DNS_DOMAIN~!\
\
Show records
\
\
\
\ ~!:IP~!\ \ template:\ ~!:TPL~!\ \
\
\
\ \ ttl:\ ~!:TTL~!\ \ \ soa:\ ~!:SOA~!\ \
\
\
'], SUBFORM: ['
\
\
Hide records
\
\
\
\
\  add dns record\
\ ~!:SUBRECORDS~!\
\ \ Cancel\ Help\
\
'], SUBENTRY: ['
\ \
\ \
\ \
in
\
\
\
\ \ ~!:RECORD_TYPE_VALUE~!\ \
\
\ \ \
\
\
'] }, ip: { FORM: ['\
\ \ \
~!:title~!
\
\
\
\ \ \
\
\ \ \
\
\ \ \ \
\
\ \ \
\
\ \ \ \
\
\ \
\ \
\
\
\ \ Cancel\ Help\
\
\ '], DOT: ['.'], ENTRY: ['\
\ \ \
\
\
\ ~!:SUSPENDED_TPL~!\ delete\
\
\
\
~!:DATE~!
\
\
\
\
\ ~!:IP_ADDRESS~!\
\ \ netmask:\ ~!:NETMASK~!\ \ \ interface:\ ~!:INTERFACE~!\ \ \ name:\ ~!:NAME~!\ \
\
\ \ owner:\ ~!:OWNER~!\ \ \ status:\ ~!:STATUS~!\ \
\
\ \ sys users:\ ~!:U_SYS_USERS~!\ \ \ web domains:\ ~!:U_WEB_DOMAINS~!\ \
\
\
\ '], ENTRIES_WRAPPER: ['
~!:content~!
'], SUSPENDED_TPL_ENABLED : ['enabled\ delete'], SUSPENDED_TPL_DISABLED : ['suspended'] }, user: { ENTRIES_WRAPPER: ['
~!:content~!
'], FORM: ['
\ \ \
~!:title~!
\
\
\
\ \ \
\
\ \ \ Generate\
\
\ \ \
\ \
\ \ \
\
\ \ \
\
\ \ \
\
\ \ \
\
\ \ \
\ \ \
\ \ Cancel\ Help\
\
'], ENTRY: ['
\ \ \
\
\
\ ~!:SUSPENDED_TPL~!\ delete\
\
\
\
~!:DATE~!
\
\ \ owner:\ ~!:OWNER~!\ \
\
\
\
\
\
\ \ ~!:LOGIN_NAME~!\ ~!:FNAME~! ~!:LNAME~!\ (~!:ROLE~!)\ \ \ package:\ ~!:PACKAGE~!\ \
\
\ \ name:\ ~!:FULLNAME~!\ \ \ email:\ \ ~!:CONTACT~!\ (reports ~!:REPORTS_ENABLED~!)\ \ \ \ childs:\ ~!:U_CHILDS~! (~!:MAX_CHILDS~!)\ \
\
\ \
\ disk usage:\
\
\ ~!:U_DISK~!\
\ \
\
\
~!:DISK_QUOTA~!~!:DISK_QUOTA_MEASURE~!
\
\
\ \
\ bandwidth:\
\
\ ~!:U_BANDWIDTH~!\
\ \
\
\
~!:BANDWIDTH~!~!:BANDWIDTH_MEASURE~!
\
\
\ \ \ \ \
\
\ \ web domains:\ ~!:U_DNS_DOMAINS~! (~!:WEB_DOMAINS~!)\ \ \ web ssl:\ ~!:U_WEB_SSL~! (~!:WEB_SSL~!)\ \ \ web alias:\ (~!:WEB_ALIASES~!) per domain\ \ \ web templates:\ \ ~!:WEB_TPL~!\ \ \ \ databases:\ ~!:U_DATABASES~! (~!:DATABASES~!)\ \ \ shell:\ ~!:SHELL~!\ \ \ backups:\ retention ~!:BACKUPS~!\ \
\
\ \ mailboxes:\ ~!:U_MAIL_BOXES~! (~!:MAIL_BOXES~!)\ \ \ mail forwarders:\ ~!:U_MAIL_FORWARDERS~! (~!:MAIL_FORWARDERS~!)\ \ \ mail domains:\ ~!:U_MAIL_DOMAINS~! (~!:MAIL_DOMAINS~!)\ \ \ dns domains:\ ~!:U_DNS_DOMAINS~! (~!:DNS_DOMAINS~!)\ \ \ ns list:\ ~!:NS~!\ \
\
\
'] }, web_domain: { FORM: ['
\ \ \
~!:title~!
\
\
\
\ \ \
\
\ \
\ \
\
\ \
\ \ \
\
\ \ \
\ \ \
\
\
\ \ Cancel\ Help\
\
'], ENTRIES_WRAPPER: ['
~!:content~!
'], ENTRY: ['
\ \ \
\
\
\ ~!:SUSPENDED_TPL~!\ delete\
\
\
\
~!:DATE~!
\
\
\
\ ~!:DOMAIN~!\ Alias:\ ~!:ALIAS~!\
\
\
\ ~!:IP~!\ \ template:\ ~!:TPL~!\ \
\ \
\ disk usage:\
\
\ ~!:U_DISK~!\
\ \
\
\
~!:DISK~!Mb
\
\
\ \
\ bandwidth:\
\
\ ~!:U_BANDWIDTH~!\
\ \
\
\
~!:BANDWIDTH~! Mb
\
\
\
\
\ \ php:\ ~!:PHP~!\ \ \ cgi:\ ~!:CGI~!\ \ \ elog:\ ~!:ELOG~!\ \ \ stats:\ ~!:STATS~!\ \ ~!:STATS_AUTH~!\ \ \
\
\ \ ssl:\ ~!:SSL~!\ \ \ nginx:\ ~!:NGINX~!\ extension list\ \
\
\
'] }, db: { USER_ITEMS_WRAPPER: ['
~!:CONTENT~!
'], USER_ITEM: ['\ ~!:NAME~!\ \ change password'], DIVIDER: ['
\ \ \ ~!:TYPE~!\ \ \
'], ENTRIES_WRAPPER: ['
~!:content~!
'], FORM: ['
\ \ \
~!:title~!
\
\
\
\ \ \
\
\ \ \
\
\
\ \ \
\
\ \ \ Generate\
\
\
\ \ \
\
\ \ Cancel\ Help\
\
'], ENTRY: ['
\ \ \
\
\
\ delete\
\
\
\
\ \ ~!:OWNER~!\ \
\
~!:DATE~!
\
\
\
\
\ ~!:DB~!\
\
\
\
\ \ Users: ~!:USERS~!\ \ \
\ Add user\
\
\ backup\ \
\
\
\ ~!:U_DISK~! Mb\
\ \
\
\
~!:DISK~! ~!:DISK_MEASURE~!
\
\
\
\
\
'] }, cron: { FORM: ['
\ \ \
~!:title~!
\
\
\
\
\
\ run at:\
\ \
\ \
\
\
\ \
\ \
\
\
\ \
\ \
\
\
\ \
\ \
\
\
\ \
\ \
\
\
\
\ \ \
\
\ \ \
\
\ \ Cancel\ Help\
\
'], ENTRIES_WRAPPER: ['
~!:content~!
'], ENTRY: ['
\ \ \
\
\
\ ~!:SUSPENDED_TPL~!\ delete\
\
\
\
~!:DATE~!
\
\
\
\ \ min\ ~!:MIN~!\ \ \ hour\ ~!:HOUR~!\ \ \ day of Month\ ~!:DAY~!\ \ \ Month\ ~!:MONTH~!\ \ \ day of Week\ ~!:WDAY~!\ \
\
\ ~!:CMD~!\
\
\ \ reported to:\ naumov.socolov@gmail.com,\ vasysualiy.pupkin@gmail.com,\ na-derevniu-dedushke@dachniy-poselok-za-mkadom.com,\ vasysualiy.pupkin@gmail.com\ \
\
\
'] } } // Internals var Tpl = App.Templates; var Templator = function(){ var init = function(){ fb.info('Templator work'); Templator.splitThemAll(); Templator.freezeTplIndexes(); }; /** * Split the tpl strings into arrays */ Templator.splitThemAll = function(){ fb.info('splitting tpls'); $.each(App.Templates.html, function(o){ var tpls = App.Templates.html[o]; $.each(tpls, function(t){ tpls[t] = tpls[t][0].split('~!'); }); }); }, /** * Iterates tpls */ Templator.freezeTplIndexes = function(){ fb.info('freezing tpl keys'); $.each(App.Templates.html, Templator.cacheTplIndexes); }, /** * Grab the tpl group key and process it */ Templator.cacheTplIndexes = function(key){ var tpls = App.Templates.html[key]; $.each(tpls, function(o){ var tpl = tpls[o]; Templator.catchIndex(key, o, tpl); }); }, /** * Set the indexes */ Templator.catchIndex = function(key, ref_key, tpl){ 'undefined' == typeof App.Templates._indexes[key] ? App.Templates._indexes[key] = {} : false; 'undefined' == typeof App.Templates._indexes[key][ref_key] ? App.Templates._indexes[key][ref_key] = {} : false; $(tpl).each(function(index, o){ if(':' == o.charAt(0)){ App.Templates._indexes[key][ref_key][o.toString()] = index; } }); } /** * Get concrete templates */ init(); return Templator; }; Templator.getTemplate = function(ns, key){ return [ App.Templates._indexes[ns][key], App.Templates.html[ns][key].slice(0) ]; } // init templator Tpl.Templator = Templator(); Tpl.get = function(key, group){ return Tpl.Templator.getTemplate(group, key); }