Roxen.git / server / config_interface / sites / drop_site.pike

version» Context lines:

Roxen.git/server/config_interface/sites/drop_site.pike:11:      constant tmpl = #"   <use file='/template' />   <tmpl title='{{ title }}'>    <topmenu base='&cf.num-dotdots;' selected='sites'/>    <content><cv-split>    <subtablist>    <st-tabs></st-tabs>    <st-page>    <div class='notify warn'><b>{{ warning }}</b></div> -  +     </st-page>    </subtablist>    </cv-split></content>   </tmpl>   ";      string|mapping parse( RequestID id )   {    if (!config_perm("Create Site")) {    return LOCALE(226, "Permission denied");
Roxen.git/server/config_interface/sites/drop_site.pike:116:       if (sizeof(dead) == 1)    res += LOCALE(470,"If you do not want to delete this database, "    "uncheck the checkmark in front of it");    else {    res += "<p>" +    LOCALE(471,"If you do not want to delete one or more of these "    "databases, uncheck the checkmark in front of the ones"    " you want to keep.") +    #"</p> - <script type='text/javascript'> -  var check_all_toggle = 0; -  function checkAll() { -  var checkboxes = document.getElementById ('checkbox_list'). -  getElementsByTagName ('INPUT'); -  for (var i = 0; i < checkboxes.length; i++) { -  checkboxes[i].checked = check_all_toggle; -  } -  check_all_toggle = !check_all_toggle; -  } - </script> - <p><a id='check_all_button' onClick='checkAll()'><gbutton>" + +  <p><button id='check_all_button' data-toggle-checkboxes='checkbox_list'>" +    LOCALE(1065, "Uncheck/Check All") + -  "</gbutton></a></p>\n"; +  "</button></p>\n";    }    res += "<ul id='checkbox_list'>";    int n;    foreach (dead, string d) {    mctx->dbs += ({ d });    res += "<li style='list-style-image: none; list-style-type: none'>"    "<input name='del_db_"+d+"' id='del_db_"+d+"' type=checkbox checked=checked />"    "<label for='del_db_"+d+"'>"+d+"</label></li>\n";    }    res += "</ul>";    res += "</blockquote>";    }    // 2: Tables          res += ("<input type=hidden name=site value='"+    Roxen.html_encode_string(id->variables->site)+"' />");       res += -  "<p><submit-gbutton2 name='really'> "+ +  "<hr><p><submit-gbutton2 name='really'> "+    LOCALE(249,"Drop old site") +    " </submit-gbutton2> "    "<cf-cancel href='./'/>";       TRACE("ctx: %O\n", mctx);       return res +    "</st-page></subtablist></td></tr></table>"    "</cv-split></content></tmpl>";    }