Esempio n. 1
0
def render_hd_script(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        parent = context.get('parent', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 14
        __M_writer(u'\n    ')
        # SOURCE LINE 15
        __M_writer(escape(parent.hd_script()))
        __M_writer(
            u'\n\n    <script type="text/javascript">\n    function setup_charts() {\n        var datatline = '
        )
        # SOURCE LINE 19
        __M_writer(h.json.dumps(c.datatline))
        __M_writer(u'\n        timelinechart( datatline, Date.UTC( ')
        # SOURCE LINE 20
        __M_writer(escape(','.join(c.startdt)))
        __M_writer(
            u" ),\n                       'chart_tline', 'Site Activity' );\n    }\n    </script>\n"
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        def user_list():
            return render_user_list(context.locals_(__M_locals))
        def group_list():
            return render_group_list(context.locals_(__M_locals))
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 3
        __M_writer(u'\r\n')
        # SOURCE LINE 4
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 6
        __M_writer(escape(user_list()))
        __M_writer(u'\r\n')
        # SOURCE LINE 7
        __M_writer(escape(group_list()))
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 50
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 92
        __M_writer(u'\r\n\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_footer(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        parent = context.get('parent', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 8
        __M_writer(u'\r\n')
        # SOURCE LINE 10
        __M_writer(u'<p>\r\n<a href="')
        # SOURCE LINE 11
        __M_writer(escape(h.url(controller='tag', action='edit', id=c.tag.id)))
        __M_writer(u'">Edit Tag</a>\r\n| <a href="')
        # SOURCE LINE 12
        __M_writer(escape(h.url(controller='tag', action='delete',
id=c.tag.id)))
        # SOURCE LINE 13
        __M_writer(u'">Delete Tag</a>\r\n</p>\r\n')
        # SOURCE LINE 16
        __M_writer(escape(parent.footer()))
        __M_writer(u'\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 4
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        self = context.get('self', UNDEFINED)
        next = context.get('next', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n"http://www.w3.org/TR/html4/strict.dtd">\n<html>\n<head>\n    <title>')
        # SOURCE LINE 7
        __M_writer(escape(self.title()))
        __M_writer(u'</title>\n    ')
        # SOURCE LINE 8
        __M_writer(escape(self.head()))
        __M_writer(u'\n</head>\n<body>\n    ')
        # SOURCE LINE 11
        __M_writer(escape(self.header()))
        __M_writer(u'\n    ')
        # SOURCE LINE 12
        __M_writer(escape(self.heading()))
        __M_writer(u'\n    ')
        # SOURCE LINE 13
        __M_writer(escape(next.body()))
        __M_writer(u'\n</body>\n</html>\n\n')
        # SOURCE LINE 17
        __M_writer(u'\n')
        # SOURCE LINE 18
        __M_writer(u'\n')
        # SOURCE LINE 19
        __M_writer(u'\n')
        # SOURCE LINE 20
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 5
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<html>\n<head>\n  <title>Greetings</title>\n</head>\n<body>\n\t<form name="test" method="GET" action="/main/index">\n\tTwitter Username: <input type="text" name="uname" />\n\t               <input type="submit" name="submit" value="Submit" />\n\t</form>\n\t<hr />\n  <h1>')
        # SOURCE LINE 11
        __M_writer(escape(c.user))
        __M_writer(u' likes these:</h1>\n  <table>\n')
        # SOURCE LINE 13
        for item in c.favs:
            # SOURCE LINE 14
            __M_writer(u'    <tr><td><a href="http://twitter.com/')
            __M_writer(escape(item.author))
            __M_writer(u'">')
            __M_writer(escape(item.author))
            __M_writer(u'<a></td><td>')
            context.write(item.tweet) 
            
            __M_writer(u'\n    <a href="')
            # SOURCE LINE 15
            __M_writer(escape(item.link))
            __M_writer(u'">..</a></td></tr>\n')
        # SOURCE LINE 17
        __M_writer(u'  </table>\n</body>\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 6
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\nId: ')
        # SOURCE LINE 4
        __M_writer(escape(c.id))
        __M_writer(u' <br />\nHeadline: ')
        # SOURCE LINE 5
        __M_writer(escape(c.headline))
        __M_writer(u' <br />\nUrl: ')
        # SOURCE LINE 6
        __M_writer(escape(h.link_to(c.url, c.url)))
        __M_writer(u' <br />\nDesc : ')
        # SOURCE LINE 7
        __M_writer(escape(h.literal(c.desc)))
        __M_writer(u' <br />\nStatus: ')
        # SOURCE LINE 8
        __M_writer(escape(c.status))
        __M_writer(u' <br />')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 7
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<div class= "position">\n')
        # SOURCE LINE 2
        runtime._include_file(context, u'menu.mako', _template_uri)
        __M_writer(u'\n<script type="text/javascript">\n$(document).ready(function() {\n\tdocument.getElementById(\'master\').focus();\n\tif ("')
        # SOURCE LINE 6
        __M_writer(escape(c.addflag))
        __M_writer(u'" == "adduser")\n\t\talert("')
        # SOURCE LINE 7
        __M_writer(escape(c.messageuser))
        __M_writer(u'");\n\treturn false;\n});\n</script>\n\n<form id="frmmenu" name="frmmenu">\n\n<div id="formarea" class="position">\n<fieldset id="fieldset_start"><legend ><strong><h3>Welcome</h3></strong></legend>  \n<p id="firstpara">\n<center><font size=6 ><b>GNUKhata A Free And Open Source Accounting Software</b></font></center>\n<h3 align= "center"><font size=5>http://gnukhata.org</h3><bR>\n<hr style="color:#0044FF" width= "90%" height = "80%" id="separator"><br>\n\t<table id="tbl" align="center">\n\t<tr>\n\t\t<td align="left"><font color="#0022FF">\n\t\t\t<ul>\n\t\t\t\t<li><font size="4"><i> &nbsp; Shortcuts are now enabled, go to "Help > Shortcut Keys" to see the various Shortcuts</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; A detailed version of Help is available in the Help section of the menu bar</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; Currently Funded By National Mission For Education Through ICT(NMEICT)</font></i></li>\n\t\t\t\t<li><font size="4"><i> &nbsp; Contact us for reporting any bugs, queries or complaints regarding the software</font></i></li>\n\t\t\t</ul>\n\t\t</td>\n\t</tr>\n\t</table>\n</fieldset>\n\n</center>\n<input type="hidden" id="orgname" name="orgname" value="')
        # SOURCE LINE 35
        __M_writer(escape(c.orgname))
        __M_writer(u'">\n<input type="hidden" id="financialfrom" name="financialfrom" value="')
        # SOURCE LINE 36
        __M_writer(escape(c.financialfrom))
        __M_writer(u'">\n<input type="hidden" id="financialto" name="financialto" value="')
        # SOURCE LINE 37
        __M_writer(escape(c.financialto))
        __M_writer(u'">\n<br><br>\n</div>\n</form>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 8
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 3
        __M_writer(u'\n')
        # SOURCE LINE 4
        __M_writer(u'\n\n')
        # SOURCE LINE 6
        if c.code == '403':
            # SOURCE LINE 7
            __M_writer(
                u'<p>You do not have sufficient permissions to access this page. Please\n<a href="'
            )
            # SOURCE LINE 8
            __M_writer(escape(h.url_for('signinagain')))
            __M_writer(u'">sign in</a> as a different user.</p>\n')
            # SOURCE LINE 9
        else:
            # SOURCE LINE 10
            __M_writer(u'<p>')
            __M_writer(escape(c.message))
            __M_writer(u'</p>\n')
            pass
        # SOURCE LINE 12
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 9
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<html>\r\n<head>\r\n\t<title>MVC</title>\r\n</head>\r\n<body>\r\n\r\n<h1>TABLE</h2>\r\n<hr/>\r\n<table>\r\n'
        )
        # SOURCE LINE 10
        for (team, points) in c.data:
            # SOURCE LINE 11
            __M_writer(u'    <tr>\r\n     <td>')
            # SOURCE LINE 12
            __M_writer(escape(team))
            __M_writer(u'</td>\r\n     <td>')
            # SOURCE LINE 13
            __M_writer(escape(points))
            __M_writer(u'</td>\r\n    </tr>\r\n')
            pass
        # SOURCE LINE 16
        __M_writer(
            u'</table>\r\n\r\n<a href="index">Start again</a>\r\n</body>\r\n</html>\r\n\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 10
0
def render_header(context):
    context.caller_stack._push_frame()
    try:
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        request = context.get('request', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 52
        __M_writer(u'\n<div class="header">\n  <div class="wrapper">\n    <h1>\n      <span><a href="/">')
        # SOURCE LINE 56
        __M_writer(escape(webname))
        __M_writer(u'</a></span>\n    </h1>\n\n')
        # SOURCE LINE 59
        if "/music/view" in request.url:
            # SOURCE LINE 60
            __M_writer(u'       <div id="search">\n\t <input type="text" name="search" value="" id="searchinput" onkeyup="search()"/>\n\t <input type="submit" name="submit" value="search" onClick="search()" class="button" />\n\t <span id="searchdone"></span>\n\t <input type="submit" name="submit" value="All" onClick="viewall()"  class="button" />\n       </div>\n')
        # SOURCE LINE 67
        __M_writer(u'\n\n    <span id="controls">\n      <div id="fb-root" style="display:inline"></div>\n      <fb:login-button autologoutlink="true"></fb:login-button>\n      <script src="http://connect.facebook.net/en_US/all.js"></script>\n      <script>\n\tFB.init({appId: \'')
        # SOURCE LINE 74
        __M_writer(escape(appid))
        __M_writer(u"', status: true, cookie: true, xfbml: true});\n\tFB.Event.subscribe('auth.sessionChange', function(response) {\n\tif (response.session) {\n\t// A user has logged in, and a new cookie has been saved\n\t\n\t} else {\n\t// The user has logged out, and the cookie has been cleared\n\t}\n\t});\n      </script>\n      \n      ")
        # SOURCE LINE 85
        __M_writer(escape(h.link_to('Settings', url(controller='admin', action='index',))))
        __M_writer(u' &nbsp;\n\n    </span>\n  </div>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 11
0
def render_head(context):
    context.caller_stack._push_frame()
    try:
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 27
        __M_writer(u'\n  ')
        # SOURCE LINE 28
        __M_writer(escape(h.stylesheet_link(url('/css/style.css'))))
        __M_writer(u'\n  ')
        # SOURCE LINE 29
        __M_writer(escape(h.stylesheet_link(url('/css/jScrollPane.css'))))
        __M_writer(u'\n  <script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>\n  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>\n  <script type="text/javascript" src="')
        # SOURCE LINE 32
        __M_writer(escape(url('/js/jScrollPane.js')))
        __M_writer(u'"></script>\n  <script type="text/javascript" src="')
        # SOURCE LINE 33
        __M_writer(escape(url('/js/jquery.em.js')))
        __M_writer(u'"></script>\n  <script type="text/javascript" src="')
        # SOURCE LINE 34
        __M_writer(escape(url('/js/jquery.mousewheel.js')))
        __M_writer(u'"></script>\n\n  <!-- Track seek -->\n  <script type="text/javascript" src="http://www.danceatthepostoffice.com/js/trackseek.js"></script>\n  <script type="text/javascript" src="http://www.danceatthepostoffice.com/js/trackresume.js"></script>\n  <script type="text/javascript" src="http://www.danceatthepostoffice.com/js/ef.ymp.utilities.js"></script>\n  <script type="text/javascript" src="http://www.danceatthepostoffice.com/js/trackfocus.js"></script>\n  <!-- /Track seek -->\n\n  <script>\n\n    $(function()\n    {\n      $(\'.scroll-pane\').jScrollPane();\n    });\n  </script>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 12
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!doctype html>\n\n<html>\n\t<head>\n\t\t<title>New Hunt</title>\n\t</head>\n\t<body>\n\t\t<form id="new_hunt" name="new_hunt" action="/codes/create" method="post">\n\t\t\t<fieldset>\n\t\t\t\t<legend>New QR</legend>\n\t\t\t\t<label for="hunt">Hunt</label>\n\t\t\t\t<select name="hunt">\n'
        )
        # SOURCE LINE 13
        for hunt in c.hunts:
            # SOURCE LINE 14
            __M_writer(u'\t\t\t\t\t<option value="')
            __M_writer(escape(hunt[0]))
            __M_writer(u'">')
            __M_writer(escape(hunt[1]))
            __M_writer(u'</option>\n')
            pass
        # SOURCE LINE 16
        __M_writer(
            u'\t\t\t\t</select><br />\n\t\t\t\t<label for="name">Name</label><input type="text" name="name" /><br />\n\t\t\t\t<label for="description">Description</label><input type="text" name="description" /><br />\n\t\t\t\t<label for="color">Color</label><input type="text" name="color" /><br />\n\t\t\t\t<label for="secret">Secret</label><input type="text" name="secret" /><br />\n\t\t\t\t<label for="location">Location</label><input type="text" name="location" /><br />\n\t\t\t\t<label for="order">Order</label><input type="text" name="order" /><br />\n\t\t\t\t<input type="submit" />\n\t\t\t</fieldset>\n\t\t</form>\n\t</body>\n</html>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 13
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml" >\r\n<head>\r\n<link rel="stylesheet" type="text/css" href="/jquery/tab.css">\r\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\r\n\t<title> GNUKhata-Login </title>\r\n\t<script language="JavaScript">\r\n\t$(document).ready(function(){ \r\n\t\t $("#username").focus();\r\n\t});\r\n\t</script>\r\n\t<script language="JavaScript">\r\n\t\t\tfunction validatelogin(login)\r\n\t\t\t{\r\n\t\t\t\t\tif (login.username.value.length == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert("Please enter a User Name.")\r\n\t\t\t\t\t\t\tlogin.username.focus()\r\n\t\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t   \r\n\t\t\t\t\tif (login.password.value.length == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\talert("Please enter a Password.")\r\n\t\t\t\t\t\t\tlogin.password.focus()\r\n\t\t\t\t\t\t\treturn false\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t</script>\r\n\r\n\t\r\n</head>\r\n<body class="login" OnLoad="document.frmlogin.username.focus();">\r\n<table width="90%">\r\n<tr align="center">\r\n<td>&nbsp;&nbsp;<h2> '
        )
        # SOURCE LINE 37
        __M_writer(escape(c.orgname))
        __M_writer(u' for financial year from ')
        __M_writer(escape(c.financialYear_from))
        __M_writer(u' to ')
        __M_writer(escape(c.financialYear_to))
        __M_writer(
            u' </h2></td>\r\n<td><img style="width: 350px; height:100px;" alt="logo"src="/images/finallogo.png"></td>\r\n</tr>\r\n</table>\r\n<pre>\r\n<center><h2>Kindly Login to your Account</h2></center><hr width="90%"></pre>\r\n<center>\r\n<div id="login">\r\n\r\n<fieldset id="login">\r\n\t\t\t\t<legend id="login"><optgroup label="GNUKhata"><b>GNUKhata</b></optgroup></legend>\r\n<form id="frmlogin" name="frmlogin" method = "post" action='
        )
        # SOURCE LINE 48
        __M_writer(escape(h.url_for(controller='menubar', action='dbconnect')))
        __M_writer(
            u' onsubmit="return validatelogin(login)">\r\n<p>\r\n\t<label id="user_login">Username<br />\r\n\t\t<input type="text" id="username" name="username" value="admin">\r\n\t</label>\r\n</p>\r\n<p>\r\n\t<label id="user_pass">Password<br />\r\n\t\t<input type="password" id="password" name="password" value="admin">\r\n\t</label>\r\n</p>\r\n\t<input type="submit" value="Login" name="proceed" id="proceed" src="/images/button.png" aling="right">\r\n</form>\r\n</fieldset>\r\n</div>\r\n</center>\r\n</form>\r\n</body>\r\n</html>\r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 14
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!DOCTYPE html>\n<html lang="en">\n  <head>\n    <meta charset="utf-8">\n    <meta name="viewport" content="width=device-width, initial-scale=1.0">\n    <meta name="description" content="">\n    <meta name="author" content="">\n    <link rel="shortcut icon" href="../../assets/ico/favicon.png">\n\n    <title>Lab 1</title>\n\n    <!-- Bootstrap core CSS -->\n    <link href="/bootstrap/dist/css/bootstrap.css" rel="stylesheet">\n\n    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->\n    <!--[if lt IE 9]>\n      <script src="../../assets/js/html5shiv.js"></script>\n      <script src="../../assets/js/respond.min.js"></script>\n    <![endif]-->\n  </head>\n\n  <body>\n\n    <div class="navbar navbar-inverse navbar-fixed-top">\n      <div class="container">\n        <div class="navbar-header">\n          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">\n            <span class="icon-bar"></span>\n            <span class="icon-bar"></span>\n            <span class="icon-bar"></span>\n\n          </button>\n          <a class="navbar-brand" href="#">Trevor\'s Lab</a>\n        </div>\n        <div class="navbar-collapse collapse">\n          <ul class="nav navbar-nav">\n            <li class="active"><a href="#">Home</a></li>\n            <li><a href="#about">About</a></li>\n\n            <li><a href="#contact">Contact</a></li>\n            <li class="dropdown">\n              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>\n              <ul class="dropdown-menu">\n                <li><a href="#">Action</a></li>\n                <li><a href="#">Another action</a></li>\n                <li><a href="#">Something else here</a></li>\n\n                <li class="divider"></li>\n                <li class="dropdown-header">Nav header</li>\n                <li><a href="#">Separated link</a></li>\n                <li><a href="#">One more separated link</a></li>\n              </ul>\n            </li>\n          </ul>\n        </div><!--/.navbar-collapse -->\n      </div>\n    </div>\n\n    <!-- Main jumbotron for a primary marketing message or call to action -->\n    <div class="jumbotron">\n      <div class="container">\n        <h1>Lab 2</h1>\n        <h1>User List</h1>\n        <table class="table table-striped">\n        <thead>\n          <tr>\n            <th>#</th>\n            <th>Name</th>\n          </tr>\n        </thead>\n        <tbody>\n'
        )
        # SOURCE LINE 72
        for row in c.users:
            # SOURCE LINE 73
            __M_writer(u'              <tr>\n                <td>')
            # SOURCE LINE 74
            __M_writer(escape(row))
            __M_writer(u'</td>\n                <td>')
            # SOURCE LINE 75
            __M_writer(escape(c.users[row]))
            __M_writer(u'</td>\n              </tr>\n')
        # SOURCE LINE 78
        __M_writer(
            u'        </tbody>\n      </table>\n\n\t<form name="testForm" action="/users" method="POST">\n\t<p>Add Username:\n\t<input type="text" name="name" value="" />\n\t</p>\n\t<p>\n\t<input type="submit" name="submit" value="submit" />\n\t</p>\n\t</form>\n\n\t<img style="position:absolute;top:300px;left:0px;" id="banana" src="/banana.gif">\n        <p>This is my networks lab1 bootstrap page.</p>\n        <p><a id="actionButtonLeft" class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-hand-left"></span> Move Left</a>\n\t<a id="actionButtonRight" class="btn btn-primary btn-lg">Move Right <span class="glyphicon glyphicon-hand-right"></span></a></p>\n      </div>\n    </div>\n\n    <div class="container">\n      <!-- Example row of columns -->\n      <!--<div class="row">\n\n        <div class="col-lg-4">\n          <h2>Heading</h2>\n          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>\n          <p><a class="btn btn-default" href="#">View details &raquo;</a></p>\n        </div>\n        <div class="col-lg-4">\n          <h2>Heading</h2>\n\n          <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>\n          <p><a class="btn btn-default" href="#">View details &raquo;</a></p>\n       </div>\n        <div class="col-lg-4">\n          <h2>Heading</h2>\n          <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>\n          <p><a class="btn btn-default" href="#">View details &raquo;</a></p>\n\n        </div>\n      </div>-->\n\n      <hr>\n    </div> <!-- /container -->\n\n\n    <!-- Bootstrap core JavaScript\n    ================================================== -->\n    <!-- Placed at the end of the document so the pages load faster -->\n    <script src="/bootstrap/dist/js/jquery.min.js"></script>\n    <script src="/bootstrap/dist/js/bootstrap.min.js"></script>\n    <script>\n\t$(\'#actionButtonRight\').click(function(){\n\t\t//alert(\'jquery click event triggered\');\n\t\t$(\'#banana\').animate({ "left": "+=200px" }, "fast" );\n\t});\n\t$(\'#actionButtonLeft\').click(function(){\n\t\t//alert(\'jquery click event triggered\');\n\t\t$(\'#banana\').animate({ "left": "-=200px" }, "fast" );\n\t});\n    </script>\n  </body>\n</html>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 15
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        session = context.get('session', UNDEFINED)
        hasattr = context.get('hasattr', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n<title>Insert title here</title>\n</head>\n<body>\n')
        # SOURCE LINE 8
        runtime._include_file(context, u'headbar.mako', _template_uri)
        __M_writer(u'\n\u7ba1\u7406\u5458\u767b\u5f55\u6210\u529f!')
        # SOURCE LINE 9
        __M_writer(escape(session['username']))
        __M_writer(u'\n<br>\n<a href="/index/adminlogout">[\u9000\u51fa]</a>\n<br>\n<div>\n\t<form action="/adminop/addserver" method="post">\n\t\t\u5927\u533a\u540d\uff1a<input type="text" name="bigservername" />\n\t\t\u533a\u540d\uff1a<input type="text" name="servername" />\n\t\t<input type="submit" value="\u6dfb\u52a0\u533a\u4fe1\u606f" />\n\t</form>\n')
        # SOURCE LINE 19
        if hasattr(c,"errorMsg"):
            # SOURCE LINE 20
            __M_writer(u'\t\t')
            __M_writer(escape(c.errorMsg))
            __M_writer(u'\n')
            pass
        # SOURCE LINE 22
        __M_writer(u'</div>\n\n<a>\n</body>\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 16
0
def render_bd_metanav(context):
    context.caller_stack._push_frame()
    try:
        c = context.get('c', UNDEFINED)

        def item_metanav(m, cls):
            return render_item_metanav(context, m, cls)

        __M_writer = context.writer()
        # SOURCE LINE 82
        __M_writer(u'\n    <div id="metanav" class="fntsmall">\n')
        # SOURCE LINE 85
        __M_writer(
            u'        <table class="br5"><tr>\n            <td class="mtiblck"> '
        )
        # SOURCE LINE 86
        __M_writer(escape(c.authusername))
        __M_writer(u' </td>\n')
        # SOURCE LINE 87
        for m in c.metanavs[:-1]:
            # SOURCE LINE 88
            __M_writer(u'                ')
            __M_writer(escape(item_metanav(m, "mtiblck mtiwht")))
            __M_writer(u'\n')
            pass
        # SOURCE LINE 90
        __M_writer(u'            ')
        __M_writer(escape(item_metanav(c.metanavs[-1], "mtiwht")))
        __M_writer(u'\n        </tr></table>\n    </div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 17
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        self = context.get('self', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(
            u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\n\n<head>\n  <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n  <!--\n  <script src="http://www.google.com/jsapi"></script>\n  <script>\n    // Load common libraries from Google\n    google.load("jquery", "1.4.2");\n    google.load("jqueryui", "1.8.5");\n  </script>\n  -->\n\n  <script type="text/javascript">\n\n  var _gaq = _gaq || [];\n  _gaq.push([\'_setAccount\', \'UA-19762144-1\']);\n  _gaq.push([\'_trackPageview\']);\n\n  (function() {\n    var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n    ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n    var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n  })();\n\n  </script>\n\n  <link rel="stylesheet" href="css/reset.css" type="text/css"/>\n  '
        )
        # SOURCE LINE 32
        __M_writer(escape(self.headtags()))
        __M_writer(u'\n</head>\n\n')
        # SOURCE LINE 36
        __M_writer(
            u'\n\n\n\n\n<body>\n\n  <div class="wrapper">\n\n  <div id="fb-root"></div>\n  <script>\n  window.fbAsyncInit = function() {\n    FB.init({appId: \'your app id\', status: true, cookie: true,\n             xfbml: true});\n  };\n  (function() {\n    var e = document.createElement(\'script\'); e.async = true;\n    e.src = document.location.protocol +\n      \'//connect.facebook.net/en_US/all.js\';\n    document.getElementById(\'fb-root\').appendChild(e);\n  }());\n  </script>\n\n  <div class="push"></div>\n\n  '
        )
        # SOURCE LINE 61
        __M_writer(escape(self.body()))
        __M_writer(
            u'\n\n<script type="text/javascript"><!--\ngoogle_ad_client = "ca-pub-4024152477560029";\n/* Markers on a map */\ngoogle_ad_slot = "5556366285";\ngoogle_ad_width = 728;\ngoogle_ad_height = 90;\n//-->\n</script>\n<!--\n<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n-->\n</script>\n\n</div>\n\n\n\n  <div class="footer">\n    '
        )
        # SOURCE LINE 81
        __M_writer(escape(self.footer()))
        __M_writer(
            u'\n  </div>\n\n  <!-- We are not encouraging illegal activities nor amoral choices.  After all, we are relieving our angst. -->\n</body>\n\n</html>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 18
0
def render_bd_footer(context):
    context.caller_stack._push_frame()
    try:
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 177
        __M_writer(
            u'\n    <div class="bclear" id="footer">\n        <hr style="margin-bottom: 0px"/>\n        <a class="floatl" href="'
        )
        # SOURCE LINE 180
        __M_writer(escape(c.zetalink))
        __M_writer(u'"\n           ><img width="110" height="45" src="')
        # SOURCE LINE 181
        __M_writer(escape(c.zetalogo))
        __M_writer(
            u'"/></a>\n        <div class="floatl" style="font-size: 11px; height : 45px">\n            <div class="ml5 calign" style="height : 22px; border-bottom : 4px solid Gainsboro">\n                <span style="vertical-align : -6px;">version : </span>\n                <span class="fntbold" style="vertical-align : -6px;">'
        )
        # SOURCE LINE 185
        __M_writer(escape(c.zetaversion))
        __M_writer(
            u'</span>\n            </div>\n            <div class="ml5 pt2" style="height : 22px;">\n                <span class="fntbold" style="color: skyblue">SKR</span>\n                <span class="fntbold" style="color: black">Farms (P) Ltd</span>\n            </div>\n        </div>\n        <div class="floatr fntbold bgblue1 brbl5 brbr5">\n        <table><tr>\n            <td class="p5 calign vmiddle">\n                <div>Z Links</div>\n            </td>\n            <td class="p5" style="border-left: 1px solid gray;">\n                <div><a target="_blank" class="fgcrimson"\n                        title="Track Zeta development activities"\n                        href="http://dev.discoverzeta.com"\n                        >zeta-development</a></div>\n                <div><a target="_blank" class="fgcrimson"\n                        title="Discuss with us"\n                        href="http://groups.google.com/group/zeta-discuss"\n                        >zeta-mailinglist</a>\n            </td>\n            <td class="p5">\n                <div><a target="_blank" class="fgcrimson"\n                        title="Mail to us for support"\n                        href="mailto:[email protected]"\n                        >Support</a></div>\n                <div><a target="_blank" class="fgcrimson"\n                        title="Download it now !!"\n                        href="http://discoverzeta.com/download"\n                        >Download</a></div>\n            </td>\n        </tr></table>\n        </div>\n    </div>\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u"fields")._populate(_import_ns, [u"*"])
        h = _import_ns.get("h", context.get("h", UNDEFINED))
        fields = _mako_get_namespace(context, "fields")
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u"\r\n")
        # SOURCE LINE 2
        __M_writer(u"\r\n\r\n")
        # SOURCE LINE 6
        __M_writer(u"\r\n\r\n")
        # SOURCE LINE 8
        __M_writer(escape(h.form_start(h.url(controller="tag", action="create"), method="post")))
        __M_writer(u"\r\n    ")
        # SOURCE LINE 9
        __M_writer(escape(fields.body()))
        __M_writer(u"\r\n    ")
        # SOURCE LINE 10
        __M_writer(escape(h.field(field=h.submit(value="Create Tag", name="submit"))))
        __M_writer(u"\r\n")
        # SOURCE LINE 11
        __M_writer(escape(h.form_end()))
        return ""
    finally:
        context.caller_stack._pop_frame()
Esempio n. 20
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        dir = context.get('dir', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            u'\n<h2>Huzzah! You\'ve completed this assignment.</h2> <br/></br><h2> Nice work.</h2>\n\n<script type="text/javascript">    \n    function setup_js(){\n\n'
        )
        if not 'assignment' in dir(c):
            if c.assignment.num_assigned and c.assignment.num_assigned > 0:
                __M_writer(
                    u'            $("#progress").html("you\'ve screened <b>')
                __M_writer(escape(c.assignment.done_so_far))
                __M_writer(u'</b> out of <b>')
                __M_writer(escape(c.assignment.num_assigned))
                __M_writer(u'</b> so far (nice going!)");\n')
            else:
                __M_writer(
                    u'            $("#progress").html("you\'ve screened <b>')
                __M_writer(escape(c.assignment.done_so_far))
                __M_writer(
                    u'</b> abstracts thus far, and, regrettably, there are no more for you to screen.");\n'
                )
        else:
            __M_writer(u'          $("#progress").html("");\n')
        __M_writer(
            u'\n\n        $(\'#buttons\').html("");\n        //alert("???");\n        $(\'#buttons\').remove()\n        $(\'#tags_container\').remove();\n        $(\'#label_terms\').remove();\n        \n    }\n</script>'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 21
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        commonFunctions = _mako_get_namespace(context, 'commonFunctions')
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<!--\n Dan Robinson\n 0700662\n-->\n')
        # SOURCE LINE 5
        __M_writer(u'\n<html>\n')
        # SOURCE LINE 7
        __M_writer(escape(commonFunctions.head()))
        __M_writer(u'\n<body>\n\t<div class="pageContent">\n\t\t')
        # SOURCE LINE 10
        __M_writer(escape(commonFunctions.nav()))
        __M_writer(u'\n\t\t<div class="mainContent">\n      <div id="imageSlider">\n          <div class="loading"><img src="/img/ajax-loader.gif" alt="loading..."/></div>\n          <div class="carousel-inner">\n          </div>\n       </div>\n      <div class="raised">\n\t\t\t <h1>')
        # SOURCE LINE 18
        __M_writer(escape(c.username))
        __M_writer(u' Dashboard</h1>\n       <form role="form" id="searchForm" name="searchForm">\n        <div class="form-group">\n          <input type="text" class="form-control" id="searchTerm" placeholder="Enter a term to search" />\n        </div>\n        <div class="form-group">\n          <label for="numResults" class="control-label" style="color: white;">Number of results to display:</label>\n          <select id="numResults" class="form-control">\n            <option>1</option>\n            <option>2</option>\n            <option>5</option>\n            <option>10</option>\n            <option>15</option>\n          </select>\n        </div>\n        <div class="form-group">\n          <button type="submit" class="btn btn-success">Search</button>\n        </div>\n      </form>\n       <!-- <button class="btn btn-success" onclick=\'rotateDiv($(".spiral"));\'\'>Spin!</button> -->\n      </div>\n\t\t</div>\n\t\t')
        # SOURCE LINE 40
        __M_writer(escape(commonFunctions.footer()))
        __M_writer(u'\n\t</div>\n</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 22
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        c = context.get('c', UNDEFINED)
        len = context.get('len', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 3
        __M_writer(u'\n<h2>Top News</h2>\n<ul>\n')
        # SOURCE LINE 6
        for a in c.article:
            # SOURCE LINE 7
            if len(a) < 2:
                # SOURCE LINE 8
                __M_writer(u'\t\t</ul>\n\t\t<h4>')
                # SOURCE LINE 9
                __M_writer(escape(a[0]))
                __M_writer(u'</h4>\n\t\t<ul>\n')
                # SOURCE LINE 11
            else:
                # SOURCE LINE 12
                __M_writer(u'\t\t<li><a href="news/')
                __M_writer(escape(a[0]))
                __M_writer(u'"> ')
                __M_writer(escape(a[1]))
                __M_writer(u'</a></li>\n')
        # SOURCE LINE 15
        __M_writer(u'</ul>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 23
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        session = context.get('session', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 5
        __M_writer(u'\n\n<div id="darkener"></div>\n<div id="margins">\n\n<p id="userinfo">User: <span id="username">')
        # SOURCE LINE 10
        __M_writer(escape(session["user"]))
        __M_writer(u'</span>. <a href="/logout">Log out</a>.</p>\n\n<h1>')
        # SOURCE LINE 12
        __M_writer(escape(c.pagetitle))
        __M_writer(u'</h1>\n\n<div id="divFilterOptions">\n  <ul id="ulCols"></ul>\n\n  Search\n  <select id="selFilterBy"></select>\n  on\n  <select id="selSheet">\n    <option value="L" selected="selected">live</option>\n    <option value="H">history</option>\n    <option value="B">both</option>\n  </select>\n  sheet for\n  <input id="listfilter" type="text" value="" />\n  <input id="btnSearch" type="button" value="Search" />\n  &nbsp;&nbsp;<input id="btnClear" type="button" value="Clear" />\n</div>\n\n<div id="divTableControls">\n  <div id="divCols">Visible columns</div>\n  <select id="selItemsPerPage" name="selItemsPerPage">\n    <option value="10">10</option>\n    <option value="15">15</option>\n    <option value="25" selected="selected">25</option>\n    <option value="50">50</option>\n    <option value="75">75</option>\n    <option value="100">100</option>\n    <option value="150">150</option>\n    <option value="200">200</option>\n    <option value="0">(all)</option>\n  </select>\n  <label for="selItemsPerPage">items/page.</label>\n  <label for="selPageList">Page:</label>\n  <input id="btnPrevPage" type="button" value="&lt; prev" disabled="disabled" />\n  <select id="selPageList" name="selPageList">\n  </select>\n  <input id="btnNextPage" type="button" value="next &gt;" />\n\n  &nbsp;(')
        # SOURCE LINE 51
        __M_writer(escape(c.itemcount))
        __M_writer(u' items total, <span id="visiblecount"></span>&nbsp;of <span id="filteredcount">')
        __M_writer(escape(c.itemcount))
        __M_writer(u'</span> shown)\n</div>\n<table>\n  <thead class="colhead">\n    <tr id="columnheaders">\n    </tr>\n  </thead>\n  <tbody id="indextable">\n  </tbody>\n</table>\n<div id="loadingmessage">Loading item data...</div>\n\n<p id="otheractions">\n  <a id="lnkAddNewItem">Add new item...</a> |\n  <img src="/link_icon_grey.gif" width="12" height="11" />\n  <a href="" id="lnkHere" target="_blank"\n    title="Right-click and choose Copy Shortcut">Link to this view</a> |\n  <a href="/exportcsv" id="lnkExport">Download as spreadsheet</a> |\n  <img src="/link_icon_grey.gif" width="12" height="11" />\n  <a href="/tableprint" id="tableprint" target="_blank"\n    title="Link opens in a new window">Printable version</a>\n</p>\n\n<div id="itemeditor">\n<h2 id="itemloadingmessage"><img src="/ajax-loader_pale-blue.gif" width="16"\n    height="16" style="vertical-align: middle"> Checking item details...</h2>\n<h2 id="editorheading">Details for item # <span id="rep">1234</span> (added by \n    <span id="initials"></span>&nbsp;on <span id="datein"></span>):</h2>\n<h2 id="newitemheading">Enter details for new item:</h2>\n\n<div id="itemdetails_leftcol">\n  <div class="detailsection" id="section1">\n   <div class="propbox">\n      <label class="text" for="rep">REP number:</label>\n      <input type="text" name="rep" />\n    </div>\n\n    <div class="propbox" id="repinuse">\n      REP number is already in use\n    </div>\n    <div class="propbox" id="repok">\n      REP number OK\n    </div>\n    <div class="propbox" id="pendingrep">\n      Enter a REP number\n    </div>\n\n    <div class="propbox">\n      <label class="text" for="kind" id="lblKind">DOA/DOB:</label>\n      <select name="kind">\n        <option value="DOA">DOA</option>\n        <option value="DOB">DOB</option>\n      </select>\n    </div>\n\n    <div class="propbox" id="divCustomer">\n      <label class="text" for="customer" id="lblCustomer">Customer:</label>\n      <select name="customer">\n      </select>\n    </div>\n\n    <div class="propbox" id="divFujitsuOwned">\n      <label for="fujitsuowned" id="lblFujitsuOwned">\n        <input name="fujitsuowned" type="checkbox" id="chkFujitsuOwned" />\n        Fujitsu owned</label>\n    </div>\n\n    <div class="propbox">\n      <label class="text" for="value">Value:</label>\n      <input type="text" name="value" value="0.00" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="costcentre">Cost centre:</label>\n      <input type="text" name="costcentre" value="" />\n    </div>\n\n    <div class="propbox">\n      <label class="text" for="ordernum">Order #:</label>\n      <input type="text" name="ordernum" value="" />\n    </div>\n  </div>\n\n\n  <div class="detailsection">\n    <div class="propbox">\n      <label class="text" for="make">Make:</label>\n      <input type="text" name="make" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="model">Model:</label>\n      <input type="text" name="model" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="part"><span class="rts_mandatory">*</span> Part #:</label>\n      <input type="text" name="part" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="serial"><span class="rts_mandatory">*</span> Serial #:</label>\n      <input type="text" name="serial" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="asset">Asset #:</label>\n      <input type="text" name="asset" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="warranty">Warranty:</label>\n      <input type="text" name="warranty" value="" />\n    </div>\n  </div>\n\n  <div class="detailsection">\n    <div class="propbox">\n      <label class="text" for="location">Location:</label>\n      <input type="text" name="location" value="" />\n    </div>\n\n    <div id="sapgrn" class="propbox">\n      <label class="text" for="sap"><span class="rts_mandatory">*</span> SAP/GRN:</label>\n      <input id="tbx_sap" class="sapgrn" type="text" name="sap" value="" /><input id="tbx_grn" class="sapgrn" type="text" name="grn" value="" />\n    </div>\n\n    <div class="propbox">\n      <label class="text" for="folio">Folio:</label>\n      <input type="text" name="folio" value="" />\n    </div>\n    <div class="propbox">\n      <label class="text" for="rtsdate">RTS Date:</label>\n      <input type="text" name="rtsdate" value="" />\n    </div>\n  </div>\n</div>\n\n\n<div id="itemdetails_rightcol">\n  <div id="textareas">\n    <div class="detailsection">\n      <label for="issue">Issue:</label>\n      <textarea class="longinput" name="issue"></textarea>\n    </div>\n\n    <div class="detailsection" id="sec_state">\n      <label for="state">Current state:</label>\n      <textarea class="longinput" name="state"></textarea>\n    </div>\n\n    <div class="detailsection">\n      <label for="solution">Solution:</label>\n      <textarea class="longinput" name="solution"></textarea>\n    </div>\n\n    <div class="detailsection">\n      <label for="comment">Comment:</label>\n      <textarea class="longinput" name="comment"></textarea>\n    </div>\n  </div>\n</div>\n\n<div id="editorcontrols">\n    <div id="editorbuttons">\n      <input type="button" id="deleteitem" value="Delete Item" disabled="true"/>\n      <input type="button" id="applyedit" value="Apply" />\n      <input type="button" id="okedit" value="OK" />\n      <input type="button" id="canceledit" value="Cancel" />\n    </div>\n\n    <div id="otheroptions">\n      <span class="rts_mandatory">*</span> required fields for <a href="" target="_blank" id="lnkPrint">printing RTS forms</a>.\n    </div>\n</div>\n\n<div id="debug1">&nbsp;</div>\n<div id="debug2">&nbsp;</div>\n\n\n</div>\n\n<!--\n<p id="logheader">JavaScript event log (<a href="#" id="hidelog">hide</a>):</p>\n-->\n<div id="log"></div>\n\n<p id="authorinfo">dobtrack by <a href="mailto:[email protected]">\nAndy Farrell</a></p>\n\n</div>\n\n<script type="text/javascript" src="/jquery.js"></script>\n<script type="text/javascript" src="/common.js"></script>\n<script type="text/javascript" src="/index.js"></script>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 24
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        form = context.get('form', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<form action="')
        __M_writer(escape(h.url(controller='userdata', action='edit')))
        __M_writer(
            u'" method="POST">\n    Name: <input type="text" name="name" value="'
        )
        # SOURCE LINE 2
        __M_writer(escape(form('name').value))
        __M_writer(u'"/><br />\n    ')
        # SOURCE LINE 3
        __M_writer(form('name').error)
        __M_writer(u'\n    Email: <input type="text" name="email" value="')
        # SOURCE LINE 4
        __M_writer(escape(form('email').value))
        __M_writer(u'"/><br />\n    ')
        # SOURCE LINE 5
        __M_writer(form('email').error)
        __M_writer(u'\n    <input type="submit" value="Submit" />\n</form>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 25
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        models = context.get('models', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 5
        __M_writer(u'\n\n<div style="height:0px;"> &nbsp; </div>\n    <h2>TurboGears Admin</h2>\n    This is a fully-configurable administrative tool to help you administer your website.\n    Below is links to all of your models.<br/>    They will bring you to a listing of the objects\n    in your database.\n\n<table class="admin_grid">\n')
        # SOURCE LINE 14
        for model in models:
            # SOURCE LINE 15
            __M_writer(u'    <tr py:for="model in models">\n      <td>\n        <a href=\'')
            # SOURCE LINE 17
            __M_writer(escape(model.lower()))
            __M_writer(u's/\' class="edit_link">')
            __M_writer(escape(model))
            __M_writer(u'</a>\n      </td>\n    </tr>\n')
            pass
        # SOURCE LINE 21
        __M_writer(u'</table>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_buttons(context):
    context.caller_stack._push_frame()
    try:
        collection_name = context.get('collection_name', UNDEFINED)
        F_ = context.get('F_', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 20
        __M_writer(
            u'\n    <p class="fa_field">\n      <a class="ui-widget-header ui-widget-link ui-widget-button ui-corner-all" href="#">\n        <input type="submit" value="'
        )
        # SOURCE LINE 23
        __M_writer(escape(F_('Save')))
        __M_writer(
            u'" />\n      </a>\n      <a class="ui-widget-header ui-widget-link ui-corner-all" href="'
        )
        # SOURCE LINE 25
        __M_writer(escape(model_url(collection_name)))
        __M_writer(
            u'">\n        <span class="ui-icon ui-icon-circle-arrow-w"></span>\n        '
        )
        # SOURCE LINE 27
        __M_writer(escape(F_('Cancel')))
        __M_writer(u'\n      </a>\n    </p>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 27
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        environment = context.get('environment', UNDEFINED)
        sorted = context.get('sorted', UNDEFINED)
        parent = context.get('parent', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 5
        __M_writer(u'\n\n')
        # SOURCE LINE 7
        __M_writer(escape(parent.sidebar_top()))
        __M_writer(u'\n<h2>The WSGI nature of the framework</h2>\n  <p>In this page you can see all the WSGI variables your request object has, \n     the ones in capital letters are required by the spec, then a sorted by\n     component list of variables provided by the Components, and at last\n     the "wsgi." namespace with very useful information about your WSGI Server</p>\n  <p>The keys in the environment are: \n  <table>\n')
        # SOURCE LINE 15
        for key in sorted(environment):
            # SOURCE LINE 16
            __M_writer(u'      <tr>\n          <td>')
            # SOURCE LINE 17
            __M_writer(escape(key))
            __M_writer(u'</td>\n          <td>')
            # SOURCE LINE 18
            __M_writer(escape(environment[key]))
            __M_writer(u'</td>\n      </tr>\n')
            pass
        # SOURCE LINE 21
        __M_writer(u'  </table>\n\n  </p>\n\n\n')
        # SOURCE LINE 26
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 28
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(
            u'<script type="text/javascript">\n\t$(document).ready(function() { \n\t\t$("#export_btn").unbind();\n\n\t    $("#export_btn").click(function()\n\t    {\n\t       \n\t       // now add all selected tags to the study\n\t       var fields = $.map($(\'.ui-selected, this\'), function(element, i) {  \n\t         return $(element).text();  \n\t       });\n\n\n\t\t   $("#export").load(\'/exporting.html\', function(){\n\t       \t\t$("#export").load("'
        )
        __M_writer(escape('/review/export_labels/%s' % c.review_id))
        __M_writer(
            u'", {fields: fields});\n\t       });\n\t       \n\t       \n\t    });\n\t });\n</script>\n\n<h1>export labels</h1>\n\nselect the fields you\'d like to export:<br/>\n\n<center>\n<ul id="selectable" class="ui-selectable">\n'
        )
        for field in ["(internal) id", "(source) id", "pubmed id"]:
            __M_writer(u' \t<li class="ui-selected">')
            __M_writer(escape(field))
            __M_writer(u'</li>\n')
        __M_writer(u'\n')
        for field in [
                "keywords", "abstract", "title", "journal", "authors", "tags",
                "notes"
        ]:
            __M_writer(u'\t<li class="ui-selectee">')
            __M_writer(escape(field))
            __M_writer(u'</li>\n')
        __M_writer(
            u'</ul>\n\n</center>\n<br/>\n<div class="actions">\n<input id="export_btn" type="button" value="export" />\n</div>\n\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 29
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<script type="text/javascript">\n\t$(document).ready(function(){\n\t\tpage = new Page;\n')
        # SOURCE LINE 4
        if (c.curPropId):
            # SOURCE LINE 5
            __M_writer(u"\t\tproperty = new PropertySetup({propertyId:'")
            __M_writer(escape(c.curPropId))
            __M_writer(u"',unitId:'")
            __M_writer(escape(c.unitId))
            __M_writer(u"'});\n")
            # SOURCE LINE 6
        else:
            # SOURCE LINE 7
            __M_writer(u'        property = new PropertySetup;\n')
            pass
        # SOURCE LINE 9
        __M_writer(u'\t});\n</script>\n\n<!-- Page -->\n<div class="page" id="propertySetup">\n\n\t<div class="editMode">\n\t\t<a class="mini button" href="/property/view/')
        # SOURCE LINE 16
        __M_writer(escape(c.curPropId))
        __M_writer(u'" id="property-preview"><span><img src="/styles/img/ico/building.png" />View Property</span></a>\n\t\t<h1 id="edit-mode-text">You are in <strong>"property setup mode"</strong></h1>\n\t</div>\n\t\n\t<div class="leftColumn">\n\t\t\n\t\t<!-- Property Info -->\n\t\t<div class="propertyInfo pane" id="propertyInfo">\n\t\t\t\n\t\t\t<!-- edit -->\n\t\t\t<div class="edit pane" id="propertyInfoEdit">\n\t\t\t\t<div id="saveProperty" class="save">\n\t\t\t\t\t<div class="inputs">\n\t\t\t\t\t\t<label for="propertyName">Property Name<input type="text" name="name" id="propertyName" /></label>\n\t\t\t\t\t\t<label for="propertyStreet">Street<input type="text" name="street" id="propertyStreet" /></label>\n\t\t\t\t\t\t<label for="propertyCity">City<input type="text" name="city" id="propertyCity" /></label>\n\t\t\t\t\t\t<label for="propertyState" class="state">State<input type="text" name="state" id="propertyState" maxlength="2" /></label>\n\t\t\t\t\t\t<label for="propertyZip" class="zip">Zip<input type="text" name="zip" id="propertyZip" maxlength="10" /></label>\n\t\t\t\t\t\t<label for="propertyType" class="clear">\n\t\t\t\t\t\t\t<select id="propertyType">\n\t\t\t\t\t\t\t\t<option value="single">Single unit</option>\n\t\t\t\t\t\t\t\t<option value="multi">Multi unit</option>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="uploadPlaceHolder" id="propertyPhotoEdit"><span id="uploadPropertyPhoto"></span><img src="" /></div>\n\t\t\t\t\t<div class="action">\n\t\t\t\t\t\t<a class="primary button" id="savePropertyButton"><span>Create Property</span></a>\n\t\t\t\t\t\t<a class="button fixedLength" id="savePropertyCancel"><span>Cancel</span></a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<!-- display -->\n\t\t\t<div class="display pane" id="propertyInfoDisplay">\n\t\t\t\t<div class="pic"><div class="thumb"><span class="frame"><img id="propertyPhotoDisplay" /></span></div></div>\n\t\t\t\t<div class="info">\n\t\t\t\t\t<h3 id="propertyNameLabel"></h3>\n\t\t\t\t\t<p><span id="propertyStreetLabel"></span><br /><span id="propertyCityLabel"></span>, <span id="propertyStateLabel"></span>, <span id="propertyZipLabel"></span></p>\n\t\t\t\t\t<div class="action">\n\t\t\t\t\t\t<a id="editPropertyButton" class="mini button"><span><img src="/styles/img/ico/building_edit.png" />Edit</span></a>\n\t\t\t\t\t\t<a id="deletePropertyLink" class="mini button"><span><img src="/styles/img/ico/delete.png" />Delete</span></a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\t\t\n\t\t<!-- Unit Maker -->\n\t\t<div class="unitMaker pane" id="unitMaker">\n\t\t\t\n\t\t\t<div class="input"><input type="text" alt="unit #s" id="unitsInput" /></div>\n\t\t\t<div class="action">\n\t\t\t\t<a class="button" id="unitMakerButton"><span>Add unit numbers</span></a>\n\t\t\t</div>\n\t\t\t<ul class="tips" id="unitMakerShortcuts">\n\t\t\t\t<div class="tooltipArrow"></div>\n\t\t\t\t<li class="header">Example Commands (samples)</li>\n\t\t\t\t<li><label>5, 15, 25</label>- adds units 5, 15 and 25</li>\n\t\t\t\t<li><label>101-150</label>- adds units from 101-150</li>\n\t\t\t\t<li><label>x 5, 15, 25</label>- deletes unit 5, 15, and 25</li>\n\t\t\t\t<li><label>x 101-150</label>- deletes units from 101-150</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t</div>\n\n\t<div class="rightColumn">\n\t\n\t\t\n\t\t<!-- vertical unit list -->\n\t\t<div class="unit tooltip" id="unitTooltip">\n\t\t\t<div class="arrow"></div>\n\t\t\t<h5>Click on a Unit</h5>\n\t\t\t<p>You can click units to edit floorplans and upload unit photos.</p>\n\t\t</div>\n\t\t<div class="unitList pane" id="unitList">\n\t\t\t<!-- unit scroller (re-usable) -->\n\t\t\t<div class="unitScroller" id="unitScroller">\n\t\t\t\t<div class="label">Unit #</div>\n\t\t\t\t<div class="manualInput">\n\t\t\t\t\t<input type="text" alt="filter" />\n\t\t\t\t</div>\n\t\t\t\t<div class="scrollFrame" id="scrollFrame"><ul></ul></div>\n\t\t\t\t<div class="controls">\n\t\t\t\t\t<div class="slider"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<!-- end unit scroller -->\n\n\t\t</div>\n\t\t<!-- unit info -->\n\t\t<div class="unitInfo pane" id="unitInfo">\n\t\t\t<div class="progress" id="progress">\n\t\t\t\t<div class="exitSetup" id="exitSetup">\n\t\t\t\t\t<a class="primary button" id="exitSetupButton"><span>Exit Setup</span></a>\n\t\t\t\t</div>\n\t\t\t\t<div class="bar"><span></span></div>\n\t\t\t\t<label></label>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="unitbox" id="unitbox"><div class="wrap"><div class="wrap">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class="edit" id="editFloorPlan">\n\t\t\t\t\t<h1 id="unitEditorLabel">Unit 101</h1>\n\t\t\t\t\t<div id="saveFloorPlan" class="save">\n\t\t\t\t\t\t<div class="inputs">\n\t\t\t\t\t\t\t<label for="floorPlanName">Floor Plan Name<input type="text" name="name" id="floorPlanName" alt="e.g. Fanciful" /></label>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<label for="sqft">Sqft<input type="text" name="sqft" id="sqft" /></label>\n\t\t\t\t\t\t\t\t<label for="beds">Br<input type="text" name="beds" id="beds" alt="e.g 2" /></label>\n\t\t\t\t\t\t\t\t<label for="baths">Ba<input type="text" name="baths" id="baths" alt="e.g. 2.5" /></label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<label for="floorPlanDescription">Floorplan Promotional Copy\n\t\t\t\t\t\t\t<em>Information here will be re-used in other places, such as advertising your unit on Craigslist.</em>\n\t\t\t\t\t\t\t<textarea name="description" cols="35" rows="5" id="floorPlanDescription"></textarea></label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="action">\n\t\t\t\t\t\t\t<a class="primary button fixedLength" id="saveFloorPlanButton"><span>Save</span></a>\n\t\t\t\t\t\t\t<a class="button fixedLength" id="saveFloorPlanCancel"><span>Cancel</span></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div class="display" id="displayFloorPlan">\n\t\t\t\t\t\n\t\t\t\t\t<div class="unitedit">\n\t\t\t\t\t\t<div class="moremenu"><div class="wrap">\n\t\t\t\t\t\t\t<label></label>\n\t\t\t\t\t\t\t<div class="options">\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t<li id="editFloorPlanLink">Edit floor plan</li>\n\t\t\t\t\t\t\t\t\t<li id="renameUnitLink">Rename unit</li>\n\t\t\t\t\t\t\t\t\t<li id="deleteUnitLink">Delete unit</li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<h1 id="unitLabel"></h1>\n\t\t\t\t\t<div class="unitLabelInput" id="unitLabelRenamer">\n\t\t\t\t\t\t<input type="text" id="unitLabelInput" />\n\t\t\t\t\t\t<a class="button primary" id="unitRenameButton"><span>Save</span></a>\n\t\t\t\t\t\t<a class="button" id="unitRenameCancel"><span>Cancel</span></a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div class="filter">\n\t\t\t\t\t\t<div class="options"><div class="wrap"><ul id="floorPlanList"></ul></div></div>\n\t\t\t\t\t\t<div><label class="floorPlanLabel" id="floorPlanLabel"></label></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div class="floorPlanInfo" id="floorPlanInfo">\n\t\t\t\t\t\t<div class="uploadPlaceHolder" id="floorPlanDisplayPhoto"><span id="uploadFloorPlanOnDisplay"></span><img src="" /></div>\n\t\t\t\t\t\t<div class="floorplan" id="floorPlan"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<div class="picViewer" id="unitPicViewer">\n\t\t\t\t\t\t<h3 id="unitPhotosLabel"></h3>\n\t\t\t\t\t\t<em>Photos here will be re-used in other places, such as advertising your unit on Craigslist.</em>\n\t\t\t\t\t\t<div class="droptext">Drop photos here!</div>\n\t\t\t\t\t\t<div class="picDisplay"><span class="frame"></span></div>\n\t\t\t\t\t\t<div class="picBar">\n\t\t\t\t\t\t\t<div class="picEditor">\n\t\t\t\t\t\t\t\t<div class="picOptions">\n\t\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t<li class="add" id="unitPicViewer-upload">Upload more</li>\n\t\t\t\t\t\t\t\t\t\t<li class="delete" id="unitPicViewer-delete">Delete this</li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="picNav">\n\t\t\t\t\t\t\t\t<div class="left"><span>Previous</span></div>\n\t\t\t\t\t\t\t\t<div class="center">0 of 0</div>\n\t\t\t\t\t\t\t\t<div class="right"><span>Next</span></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t</div></div></div>\n\t\t\t\n\t\t\t\n\t\t</div>\n\t\t\n\t\t\n\t</div>\n\n</div>\n\n<div id="previewModal">\n\t<div class="close">Close Window</div>\n\t<img />\n</div>\n\n')
        # SOURCE LINE 213
        __M_writer(u'\n\n\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 30
0
def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        self = context.get('self', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r\n\r\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r\n<head>\r\n\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\r\n\r\n  \t<title>Soybean And Corn Advisor</title>\r\n  \t<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />\r\n  \r\n\t<link rel="stylesheet" type="text/css" href="../niftyCorners.css">\r\n  \t<link rel="stylesheet" type="text/css" href="../niftyLayout.css" media="print">\r\n  \t<script type="text/javascript" src="../niftycube.js"></script>\r\n  \t<script type="text/javascript" src="../niftylayou.js"></script>\r\n  \t<script type="text/javascript">\r\n\t\twindow.onload=function()\r\n\t\t{\r\n\t\t\tNifty("#sddm li a","transparent top");\r\n\t\t}\r\n\t</script>\r\n\r\n  '
        )
        # SOURCE LINE 22
        __M_writer(escape(self.javapics()))
        # SOURCE LINE 23
        __M_writer(
            u'\t\r\n<script>\r\n\t// Copyright 2006-2007 javascript-array.com\r\n\tvar timeout\t= 500;\r\n\tvar closetimer\t= 0;\r\n\tvar ddmenuitem\t= 0;\r\n\t\r\n\t// open hidden layer\r\n\tfunction mopen(id)\r\n\t{\t\r\n\t\t// cancel close timer\r\n\t\tmcancelclosetime();\r\n\t\r\n\t\t// close old layer\r\n\t\tif(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';\r\n\t\r\n\t\t// get new layer and show it\r\n\t\tddmenuitem = document.getElementById(id);\r\n\t\tddmenuitem.style.visibility = \'visible\';\r\n\t\r\n\t}\r\n\t// close showed layer\r\n\tfunction mclose()\r\n\t{\r\n\t\tif(ddmenuitem) ddmenuitem.style.visibility = \'hidden\';\r\n\t}\r\n\t\r\n\t// go close timer\r\n\tfunction mclosetime()\r\n\t{\r\n\t\tclosetimer = window.setTimeout(mclose, timeout);\r\n\t}\r\n\t\r\n\t// cancel close timer\r\n\tfunction mcancelclosetime()\r\n\t{\r\n\t\tif(closetimer)\r\n\t\t{\r\n\t\t\twindow.clearTimeout(closetimer);\r\n\t\t\tclosetimer = null;\r\n\t\t}\r\n\t}\r\n\t\r\n\t// close layer when click-out\r\n\tdocument.onclick = mclose; \r\n</script>\r\n\t\r\n\r\n</head>\r\n\r\n<body onload="showpic()">\r\n  <div id="header"></div>\r\n  <div id="wrapper">\r\n    \r\n'
        )
        # SOURCE LINE 77
        __M_writer(escape(self.dropdown()))
        __M_writer(
            u'\r\n    \r\n\t<div id="pics">\r\n\t\t\r\n\t</div>\r\n    <div id="content">\r\n      <div id="section">\r\n\t  \t\t'
        )
        # SOURCE LINE 84
        __M_writer(escape(self.body()))
        # SOURCE LINE 85
        __M_writer(
            u'\t\t</div>\r\n    </div>\r\n    <div id="footer">\r\n      <h1>Copyright Soybean and Corn Advisor, Inc. 2009-2013</h1>\r\n    </div>\r\n  </div>      \r\n\t<script type="text/javascript">\r\n\t\tvar gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r\n\t\tdocument.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));\r\n\t</script>\r\n\t<script type="text/javascript">\r\n\t\ttry {\r\n\t\t\tvar pageTracker = _gat._getTracker("UA-3543383-2");\r\n\t\t\tpageTracker._trackPageview();\r\n\t\t} catch(err) {}</script>                               \r\n</body>                                       \r\n</html>                                       \r\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 31
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get("c", UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<div class="wrap">\n\n\t<div class="foxClose"><span>Close</span></div>\n\n\t<h2>')
        # SOURCE LINE 5
        __M_writer(escape(c.alert["title"]))
        __M_writer(u"</h2>\n    <p>")
        # SOURCE LINE 6
        __M_writer(escape(c.alert["message"]))
        __M_writer(u"</p>\n")
        # SOURCE LINE 7
        if "button" in c.alert:
            # SOURCE LINE 8
            __M_writer(u'\t<div class="action">\n\t\t<a class="primary button" href="')
            # SOURCE LINE 9
            __M_writer(escape(c.alert["link"]))
            __M_writer(u'"><span>')
            __M_writer(escape(c.alert["button"]))
            __M_writer(u'</span></a>\n\t\t<a class="button foxClose"><span>Cancel</span></a>\n\t</div>\n')
            pass
        # SOURCE LINE 13
        __M_writer(u"\n</div>")
        return ""
    finally:
        context.caller_stack._pop_frame()
Esempio n. 32
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<?xml version="1.0" encoding="UTF-8"?> \n\n<!DOCTYPE HTML>\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\n<head>\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\t<title>Welcome to GNUKhata</title>\n\t<script type="text/javascript" src="/jquery/jquery-1.5.min.js"> </script>\n\t<script type="text/javascript" src="/jquery/jquery.form.min.js"> </script>\n\t<script type="text/javascript" src="/jquery/jquery.autocomplete-min.js"> </script>\n\t<script type="text/javascript" src="/jquery/validation.js"> </script>\n\t <script src="/jquery/jquery-latest.js"></script>\n\t<link rel="stylesheet" type="text/css" href="/jquery/tab.css">\n\t<script type="text/javascript" src="/jquery/jquery-ui.min.js"> </script>\n\t<script type="text/javascript" src="/jquery/jquery-latest.js"> </script>\n\t<script type="text/javascript" src="/jquery/jquery.titlecase2.js"> </script>\n<style>\n.button{\nwidth: 1000px;\n}\n</style>\n<script type="text/javascript">\n//<![CDATA[\nvar from_date = [];\nvar to_date = [];\n$(document).ready(function() \n{\t\n\t\n\tdocument.getElementById("NextLogin").disabled = true;\n\t$(\'#todatey\').keyup(function(){\n\t\tif(this.value.length>=4)\n\t\t{\n\t\t\t$("#newsubmitbutton").focus();\n\t\t\tvar fromdate = document.getElementById(\'fromdate\');\n\t\t\tvar fromdated = document.getElementById(\'fromdated\');\n\t\t\tvar fromdatem = document.getElementById(\'fromdatem\');\n\t\t\tvar fromdatey = document.getElementById(\'fromdatey\');\n\t\t\tvar todated = document.getElementById(\'todated\');\n\t\t\tvar todatem = document.getElementById(\'todatem\');\n\t\t        var todatey = document.getElementById(\'todatey\');\n\t\t//to check if the financial year already exists for the given organisation\n\t\t\t\tvar orgname = $(\'input#orgname\').val();\n\t\t\t\t\n\t\t\t\t$.ajax({\n           \t\t\t\ttype: "POST",\n            \t\t\t\turl: location.protocol+"//"+location.host+"/startup/getFinancialYear",\n            \t\t\t\tdata: {"organisation":orgname},\n           \t\t\t\tdataType: "json",\n\t\t\t\t\tsuccess: function(result) {\n\t\t\t\t\t\tvar res = result["financialyear"];\n\t\t\t\t\t\tvar start_date = fromdated.value + "-" + fromdatem.value + "-" + fromdatey.value;\n\t\t\t\t\t\tvar end_date = todated.value + "-" + todatem.value + "-" + todatey.value;\n\t\t\t\t\t\tvar check_date = start_date + "," + end_date;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(var i=0;i<res.length;i++)\n\t\t\t\t   \t\t{\n\t\t\t\t\t\t\tif(res[i] == check_date)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\talert("Organisation with Financial Year already exists");\n\t\t\t\t\t\t\t\t$(\'#orgname\').focus();\n\t\t\t\t\t\t\t\tdocument.getElementById(\'orgname\').value = "";\n\t\t\t\t\t\t\t\tfromdated.value="";fromdatem.value = ""; fromdatey.value="";\n\t\t\t\t\t\t\t\ttodated.value= "";todatem.value =""; todatey.value ="";\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$("#newsubmitbutton").focus();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t});\n\t\n\t\t$("#newsubmitbutton").click(function()\n\t\t{\n\t\t\tvar orgname = document.getElementById(\'orgname\');\n\t\t        var fromdate = document.getElementById(\'fromdate\');\n\t\t\tvar fromdated = document.getElementById(\'fromdated\');\n\t\t\tvar fromdatem = document.getElementById(\'fromdatem\');\n\t\t\tvar fromdatey = document.getElementById(\'fromdatey\');\n\t\t\tvar todated = document.getElementById(\'todated\');\n\t\t\tvar todatem = document.getElementById(\'todatem\');\n\t\t        var todatey = document.getElementById(\'todatey\');\n\t\t\t\n\t\t\tif (notEmpty(orgname,"Please Enter Organization Name") || notEmpty(fromdated,"Please Enter From Day") || notEmpty(fromdatem,"Please Enter From Month") || notEmpty(fromdatey,"Please Enter From Year") || notEmpty(todated,"Please Enter To Day") || notEmpty(todatem,"Please Enter To Month") || notEmpty(todatey,"Please Enter To Year") || !isNumeric(fromdated,"Please Enter Valid From Day") || !isNumeric(fromdatem,"Please Enter Valid From Month") || !isNumeric(fromdatey,"Please Enter Valid From Year") || !isNumeric(todated,"Please Enter Valid To Day") || !isNumeric(todatem,"Please Enter Valid To Month") || !isNumeric(todatey,"Please Enter Valid To Year"))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(fromdated.value == 0 || fromdatem.value == 0 || fromdatey.value == 0 || todated.value == 0 || todatem.value == 0 || todatey.value == 0)\n\t\t\t\t{\n\t\t\t\t\talert("Date Cant Have Zero");\n\t\t\t\t\tfromdated.value=\'\';\n\t\t\t\t\tfromdated.focus();\n\t\t\t\t\treturn false;  \n\t\t\t\t}\n\n\t\t\t\tif (fromdated.value >= 32 )\n\t\t\t\t{\t\n\t\t\t\t\talert("The From Day Cannot Be Greater Than 31");\n                                        fromdated.value=\'\';\n\t\t\t\t\tfromdated.focus();\n\t\t\t\t\treturn false;  \n                                \t\t\t\n\t\t\t\t}\n\n\t\t\t\tif (todated.value >= 32)\n\t\t\t\t{\t\n\t\t\t\t\talert("The To Day Cannot Be Greater Than 31");\n                                        todated.value=\'\';\n\t\t\t\t\ttodated.focus();\n\t\t\t\t\treturn false;  \n                                \t\t\t\n\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\tif(fromdatem.value >=13)\n\t\t\t\t{\n\t\t\t\t\talert("From Month should not be greater than 12");\n\t\t\t\t\tfromdatem.value=\'\';\n\t\t\t\t\tfromdatem.focus();\n\t\t\t\t\treturn false; \n\t\t\t\t}\n\n\t\t\t\tif(todatem.value >=13)\n\t\t\t\t{\n\t\t\t\t\talert("Month should not be greater than 12");\n\t\t\t\t\ttodatem.value=\'\';\n\t\t\t\t\ttodatem.focus();\n\t\t\t\t\treturn false; \n\t\t\t\t}\n\n\t\t\t\tif(fromdatem.value == "02" || fromdatem.value == "04" || fromdatem.value == "06" || fromdatem.value == "09" || fromdatem.value == "11")\n\t\t\t\t{\n\t\t\t\t\tif (fromdated.value >= 31 || fromdated.value >= 31)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from date month does not exist");\n\t\t\t\t\t\tfromdated.value=\'\';\n\t\t\t\t\t\tfromdated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (todatem.value == "02" || todatem.value == "04" || todatem.value == "06" || todatem.value == "09" || todatem.value == "11")\n\t\t\t\t{\n\t\t\t\t\tif (todated.value >= 31 || todated.value >= 31)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from date month does not exist");\n\t\t\t\t\t\ttodated.value=\'\';\n\t\t\t\t\t\ttodated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (fromdatem.value == "01" || fromdatem.value == "03" || fromdatem.value == "05" || fromdatem.value == "07" || fromdatem.value == "08" || fromdatem.value == "10" || fromdatem.value == "12")\n\t\t\t\t{\n\t\t\t\t\tif (fromdated.value > 31 || fromdated.value > 31)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from date month does not exist");\n\t\t\t\t\t\tfromdated.value=\'\';\n\t\t\t\t\t\tfromdated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(todatem.value == "01" || todatem.value == "03" || todatem.value == "05" || todatem.value == "07" || todatem.value == "08" || todatem.value == "10" || todatem.value == "12")\n\t\t\t\t{\n\t\t\t\t\tif (todated.value > 31 || todated.value > 31)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from d-`ate month does not exist");\n\t\t\t\t\t\ttodated.value=\'\';\n\t\t\t\t\t\ttodated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t\tif (fromdatem.value == "02")\n\t\t\t\t{\n\t\t\t\t\tif (fromdated.value > 29)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from date month does not exist");\n\t\t\t\t\t\tfromdated.value=\'\';\n\t\t\t\t\t\tfromdated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\tif (todatem.value == "02")\n\t\t\t\t{\n\t\t\t\t\tif (todated.value > 29)\n\t\t\t\t\t{\n\t\t\t\t\t\talert("Day for the corressponding from date month does not exist");\n\t\t\t\t\t\ttodated.value=\'\';\n\t\t\t\t\t\ttodated.focus();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvar start = new Date(fromdatey.value,fromdatem.value - parseInt(1),fromdated.value);\n\t\t\t\tvar end = new Date(todatey.value,todatem.value  - parseInt(1),todated.value);\n\t\t\n\t\t\t\t//alert(start);\n\t\t\t\t//alert(end);\n\n\t\t\t\tif (start.getTime() > end.getTime())\n\t\t\t\t{\n\t\t\t\t\talert("From date should be less than to date");\n\t\t\t\t\tfromdated.focus();\n\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (!checkleapyear(fromdatey.value))\n\t\t\t\t{\n\t\t\t\t\tif (fromdatem.value == "02")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (fromdated.value == "29")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talert("Enter valid from day for leap year");\n\t\t\t\t\t\t\tfromdated.value=\'\';\n\t\t\t\t\t\t\tfromdated.focus();\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!checkleapyear(todatey.value))\n\t\t\t\t{\n\t\t\t\t\tif (todatem.value == "02")\n\t\t\t\t\t{\n\t\t\t\t\t\tif (todated.value == "29")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talert("Enter valid to day for leap year");\n\t\t\t\t\t\t\ttodated.value=\'\';\n\t\t\t\t\t\t\ttodated.focus();\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t\t\t\n\t\t\treturn false;\n\t\t});\n\n\t\t$(\'select#organisation\').change(function() {\t\n\n\t\tvar orgname = $(\'select#organisation\').val();\n\t\tdocument.getElementById("NextLogin").disabled = false;\n\t\t$.ajax({\n           \t\t\ttype: "POST",\n            \t\t\turl: location.protocol+"//"+location.host+"/startup/getFinancialYear",\n            \t\t\tdata: {"organisation":orgname},\n           \t\t\tdataType: "json",\n\t\t\t\t\n            \t\t\tsuccess: function(result) {\n\t\t\t\tlist_of_years = result["financialyear"];\n\t\t\t\tvar financial_year = document.getElementById("financial year");\n\t\t\t\tfinancial_year.options.length = 0\n\t\t\t\tif (list_of_years.length == 1)\n\t\t\t\t{\n\t\t\t\t\tvar option = document.createElement("option");\n\t\t\t\t\t//financial_year.options.add(option);\n\t\t\t\t\t\tfor(var i=0;i<list_of_years.length;i++)\n\t\t\t\t   \t\t{\n\t\t\t\t\t\t\tvar option = document.createElement("option");\n\t\t\t\t\t\t\toption.text = list_of_years[i][0] + " to " + list_of_years[i][1]; \n\t\t\t\t\t\t\toption.value = list_of_years[i][0] + " to " + list_of_years[i][1]; \n\t\t\t\t\t\t\tfinancial_year.options.add(option);\n\t\t\t\t\t\t\t//alert(list_of_years[i][0]);\n\t\t\t\t\t\t\tfrom_date[i] = list_of_years[i][0];\n\t\t\t\t\t\t\tto_date[i] = list_of_years[i][1];\n\t\t\t\t    \t\t}\n\t\t\t\t\t$("#NextLogin").focus();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar option = document.createElement("option");\n\t\t\t\t\toption.text = "--Select--"; \n\t\t\t\t\toption.value = "--Select--";\n\t\t\t\t\tfinancial_year.options.add(option);\n\t\t\t\t\t\tfor(var i=0;i<list_of_years.length;i++)\n\t\t\t\t   \t\t{\n\t\t\t\t\t\t\tvar option = document.createElement("option");\n\t\t\t\t\t\t\toption.text = list_of_years[i][0] + " to " + list_of_years[i][1]; \n\t\t\t\t\t\t\toption.value = list_of_years[i][0] + " to " + list_of_years[i][1]; \n\t\t\t\t\t\t\tfinancial_year.options.add(option);\n\t\t\t\t\t\t\t//alert(list_of_years[i][0]);\n\t\t\t\t\t\t\tfrom_date[i] = list_of_years[i][0];\n\t\t\t\t\t\t\tto_date[i] = list_of_years[i][1];\n\t\t\t\t    \t\t}\n\t\t\t\t\toption.focus();\n\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn false;\n\t\t});\n\n\t\t$("#selectorg").click(function(){\n\t\t\t$(\'#logout\').empty();\n\t\t\tvar div1 = document.getElementById("toggle2");\n\t\t\tif (div1.style.display != "none")\n\t\t\t{\n\t\t\t\t$("#toggle2").toggle("slow");\n\t\t\t}\n\t\t\t$("#toggle1").toggle("slow");\n\t\t\t$("#organisation").focus();\n\t\t});\n\t\n\tfunction checkleapyear(datea)\n\t{\n       \t\tdatea = parseInt(datea);\n        \tif(datea%4 == 0)\n        \t{\n                \tif(datea%100 != 0)\n                \t{\n                \t        return true;\n                \t}\n                \telse\n                \t{\n                \t        if(datea%400 == 0)\n                \t                return true;\n                \t        else\n                \t                return false;\n                \t}\n        \t}\t\n\t\treturn false;\n\t}\n\n\tfunction notEmpty(elem, helperMsg)\n\t{\n\t\tif(elem.value.length == 0)\n\t\t{\n\t\t\talert(helperMsg);\n\t\t\telem.focus(); // set the focus to this input\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t\t\t\n\t}\n\n\tfunction isNumeric(elem, helperMsg)\n\t{\n\t\tvar numericExpression = /^[0-9]+$/;\n\t\tif(elem.value.match(numericExpression)){\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\talert(helperMsg);\n\t\t\telem.focus();\n\t\t\treturn false;\n\t\t}\n\t}\n\n\n\t\n\t\t$("#neworg").click(function(){\n\t\t\t$(\'#logout\').empty();\n\t\t\tvar div2 = document.getElementById("toggle1");\n\t\t\tif (div2.style.display != "none")\n\t\t\t{\n\t\t\t\t$("#toggle1").toggle("slow");\n\t\t\t}\n\t\t\t$("#toggle2").toggle("slow");\t\n\t\t\t$("#orgname").focus();\t\n\t\t});\n\t\t\n\t\n\n\t\t$("#NextLogin").click(function()\n\t\t{\n\t\t\tvar drop_financialYear = document.getElementById("financial year");\n\t\t\t\n\t\t\t\n\t\t\tvar index = drop_financialYear.selectedIndex;\n\t\t\tvar text = drop_financialYear.value;\n\t\t\tvar orgnamevalue = document.getElementById("organisation").value;\n\t\t\tif(orgnamevalue == "--Select--")\n\t\t\t{\n\t\t\t\talert("Please select organisation name ");\n\t\t\t\t$("select#organisation").focus();\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t}else if(text == "--Select--")\n\t\t\t\t{\n\t\t\t\t\talert("Please select Financial Year");\n\t\t\t\t\t$("select#financial year").focus();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tindex = 1;\n\t\t\t\tvar list_index = parseInt(index) - parseInt(1);\n\t\t\t\tdocument.forms[0].elements["yeartodate"].value = to_date[list_index];\n\t\t\t\tdocument.forms[0].elements["yearfromdate"].value = from_date[list_index];\n\t\t\t}\n\t\t\tvar datesplit = text.split(" to ");\n\t\t\tdocument.forms[0].elements["yearfrom"].value = datesplit[0];\n\t\t\tdocument.forms[0].elements["yearto"].value = datesplit[1];\n\t\n\t\t});\n\n\t\t\n\n\t\t/*\t*/\n\t\t\n\t\treturn false;\n});\n//]]>\n</script>\n<script type="text/javascript">\n//Validating date as DD\nfunction validate(obj) {\n       if (obj.value < 10 && obj.value.length != 2) {\n              alert(\'Date must be in DD\');\n              obj.value = "0" + obj.value;\n       }\n}\n</script>\n<script type="text/javascript">\n//Validating month as MM\nfunction validmonth(obj) {\n       if (obj.value < 10 && obj.value.length != 2) {\n              alert(\'Month must be in MM\');\n              obj.value = "0" + obj.value;\n       }\n}\n</script>\n<script type="text/javascript">\n//Validating year as YYYY\nfunction validyear(obj) {\n       var _thisYear = new Date().getFullYear();\n       if (obj.value.length < 4 ) {\n              alert(\'Year must be in YYYY\');\n              obj.focus();\n\t      obj.value = _thisYear;\n       }\n              \n}\n</script>\n\n<script>\n//<!CDATA[\nfunction fn(txt) {\n\tif (txt.value.length > 0)\n\t{\n\t\t$("#orgname").blur(function()\n\t\t{\n\t\t\t $("#orgname_warning").empty(); \n\t\t});\n\t\tdocument.getElementById(\'newsubmitbutton\').disabled = false;\n\t}\n\telse\n\t{\n\t\t$("#orgname").blur(function()\n\t\t{\n\t\t\t$("#orgname_warning").empty(); \n\t\t\t$("#orgname_warning").append("This field is required"); \n\t\t});\t\n\t\tdocument.getElementById(\'newsubmitbutton\').disabled = true;\t\n\t}\n}\n//]]>\n</script>\n\n<script>\nString.prototype.trim = function() {  return this.replace(/^[\\s]+/,\'\').replace(/[\\s]+$/,\'\').replace(/[\\s]{2,}/,\' \');  }\nfunction useTrim()\n{\n\tvar orgnam = document.getElementById(\'orgname\').value\n\tdocument.getElementById(\'orgname\').value = orgnam.trim();\n}\n</script>\n<script language="javascript" type="text/javascript">\n\nfunction limitText(limitField, limitCount, limitNum) {\n\tif (limitField.value.length > limitNum) {\n\t\tlimitField.value = limitField.value.substring(0, limitNum);\n\t} else {\n\t\tlimitCount.value = limitNum - limitField.value.length;\n\t}\n}\n</script>\n<script>\n//<!CDATA[\n//this is for titlecase\nString.prototype.capitalize = function(){\n   return this.replace( /(^|\\s)([a-z])/g , function(m,p1,p2){ return p1+p2.toUpperCase(); } );\n  };\nfunction change_case()\n{\n\tvar orgnam = document.getElementById(\'orgname\').value\n\tdocument.getElementById(\'orgname\').value = orgnam.capitalize();\n}\n//]]>\n</script>\n\n<script>\n/* Function to go to next field when we press Enter Key*/\nfunction keydown(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==13)\n\t{\n\t\tdocument.getElementById(s).focus();\n\t}\n}\n</script>\n\n<script>\n/* Function to go previous field when we press Up Arrow*/\nfunction keyup(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==38)\n\t{\n\t\tdocument.getElementById(s).focus();\n\t}\n}\n</script>\n<script>\n/*Function to move from organisation type to organisation name by Up arrow*/\nfunction typetoname()\n{\n\n\tvar x=document.getElementById("organisationType").selectedIndex;\n\tvar y=document.getElementById("organisationType").options;\n\tif(y[x].index==0){\n\t\tif (code==38){\n\t\t\tdocument.getElementById(\'orgname\').focus();\n\n\t         }\n        }\n\n}\n</script>\n<script>\n/*Function for Right arrow to have focus on selectorg when page is loaded*/\nfunction keyright(e,s){\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==39){\n\t\tdocument.getElementById(s).focus();\n\t}\n}\n</script>\n<script>\n/*Function to go from organisation to selectorg by Up arrow*/\nfunction orgtoselect()\n{\n\tvar x=document.getElementById("organisation").selectedIndex;\n\tvar y=document.getElementById("organisation").options;\n\tif(y[x].index==0){\n\t\tif (code==38){\n\t\t\tdocument.getElementById(\'selectorg\').focus();\n\n\t\t}\n        }\n\n}\n</script>\n<script>\n/* Function for down arrow to move to next field*/\nfunction keydowns(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==40)\n\t{\n\t\tdocument.getElementById(s).focus();\n\t}\n}\n</script>\n<script>\n//create a function that accepts an input variable (which key was key pressed)\nfunction disableEnterKey(e)\n{\n \n//create a variable to hold the number of the key that was pressed     \n\tvar key;\n\n\t//if the users browser is internet explorer\n\tif(window.event)\n\t{\n\t\t//store the key code (Key number) of the pressed key\n\t\tkey = window.event.keyCode;\n\n\t//otherwise, it is firefox\n\t} \n\telse \n\t{\n\t\t//store the key code (Key number) of the pressed key\n\t\tkey = e.which;     \n\t}\n\n\t//if key 13 is pressed (the enter key)\n\tif(key == 13)\n\t{\n\t\t//do nothing\n\t\treturn false;\n\t      \n    //otherwise\n    \t} \n\telse \n\t{\n      \n\t    //continue as normal (allow the key press for keys other than "enter")\n\t    return true;\n    \t}\n      \n\t//and don\'t forget to close the function    \n\t\n\tkeydown(e,s);\n}\n</script>\n\n\n<script>\n//function to calculate month of \'To Date\' \nfunction toMonth(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==13)\n\t{\n\t\tvar fromdated = Number(document.getElementById("fromdated").value);\n\t\tvar fromdatem = Number(document.getElementById("fromdatem").value);\n\t\tvar todatem = document.getElementById("todatem");\n\t\ttodatem.value =  fromdatem;\n\t\tvar todated = document.getElementById("todated");\n\t\tdocument.getElementById(\'fromdatey\').focus(); \n\t\tvar _thisMonth = new Date().getMonth();\n\t\t\t\t\n                if (fromdatem!=""&&!isNaN(fromdatem)){\n\n                }\n                else{\n                \n                        todatem.value=_thisMonth;\n                        alert(\'Month Cannot be Null\');\n                        document.getElementById(\'fromdatem\').focus();                             \n                }\n                   \n     \n\t\t\n\t\t \n\t\tif (fromdated == "01")\n\t\t{         \n                        todatem.value =  fromdatem - 01;\n                        todated.value=new Date().getDate();\n                        \n                        if(fromdated=="01" && fromdatem==""){\n                                  todatem.value = new Date().getMonth();\n                        }\n                      \n                        \n\t\t\tif (fromdatem == "01")\n\t\t\t{\n\t\t\t\ttodatem.value = 12;\n\t\t\t}\n\t\t          \n\n\t\t\tif (fromdatem  == "05" || fromdatem  == "07"  || fromdatem  == "10" || fromdatem  == "12")\n\t\t\t{\n\t\t\t\ttodated.value=30;\n\t\t\t}\n\t\n\t\t\t\t\n\t\t\tif (fromdatem  == "04" || fromdatem  == "06" || fromdatem  == "02"|| fromdatem == "09" || fromdatem  == "11" || fromdatem == "01" || fromdatem  == "08")\n\t\t\t{\n\t\t\t\ttodated.value=31;\n\t\t\t}\n\t\n\t\t\n\t\t\tif (fromdatem  == "03")\n\t\t\t{\n\t\t\t\ttodated.value=28;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\telse\n\t\t\ttodated.value=fromdated-01;\n                        var _thisDate = new Date().getDate();\n\t\t\n                        if (fromdated!=""&&!isNaN(fromdated)){\n\n                         }\n                        else{\n                \n                                todated.value=_thisDate;\n                                alert(\'Date Cannot be Null\');\n                                document.getElementById(\'fromdated\').focus();      \n                        }\n                   \n     \n\t\t\tif (todatem.value < 10)\n\t\t\t{\n\t\t\t\ttodatem.value = "0" + todatem.value\n\t\t\t}\n\t\t\tif (todated.value < 10)\n\t\t\t{\n\t\t\t\ttodated.value = "0" + todated.value\n\t\t\t}\n\t\t\n\t\t\t\n\t\t          \n\t}\n\telse if (code==9) //9 code stands for tab key \n\t{\n\t\tvar fromdated = Number(document.getElementById("fromdated").value);\n\t\tvar fromdatem = Number(document.getElementById("fromdatem").value);\n\t\tvar todatem = document.getElementById("todatem");\n\t\ttodatem.value =  fromdatem;\n\t\tvar todated = document.getElementById("todated");\n\t\t\n\t\tvar _thisMonth = new Date().getMonth();\n\t\t\n                if (fromdatem!=""&&!isNaN(fromdatem)){\n\n                }\n                else{\n                        todatem.value=_thisMonth;\n                        alert(\'Month Cannot be Null\');\n                        document.getElementById(\'fromdated\').focus();      \n                }\n\t\n\t\t\n\t\tif (fromdated == "01")\n\t\t{         \n                        todatem.value =  fromdatem - 01;\n                        todated.value=new Date().getDate();\n                        \n                        if(fromdated=="01" && fromdatem==""){\n                                  todatem.value = new Date().getMonth();\n                        }\n\t\t\tif (fromdatem == "01")\n\t\t\t{\n\t\t\t\ttodatem.value = 12;\n\t\t\t}\n\t\t          \n\n\t\t\tif (fromdatem  == "05" || fromdatem  == "07"  || fromdatem  == "10" || fromdatem  == "12")\n\t\t\t{\n\t\t\t\ttodated.value=30;\n\t\t\t}\n\t\n\t\t\t\t\n\t\t\tif (fromdatem  == "04" || fromdatem  == "06" || fromdatem  == "02"|| fromdatem == "09" || fromdatem  == "11" || fromdatem == "01" || fromdatem  == "08")\n\t\t\t{\n\t\t\t\ttodated.value=31;\n\t\t\t}\n\t\n\t\t\n\t\t\tif (fromdatem  == "03")\n\t\t\t{\n\t\t\t\ttodated.value=28;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t\telse\n\t\t\ttodated.value=fromdated-01;\n\t\t\tvar _thisDate = new Date().getDate();\n\t\t\n                        if (fromdated!=""&&!isNaN(fromdated)){\n\n                         }\n                        else{\n                \n                                todated.value=_thisDate;\n                                alert(\'Date Cannot be Null\');\n                                document.getElementById(\'organisationType\').focus();      \n                        }\n\t\t\tif (todatem.value < 10)\n\t\t\t{\n\t\t\t\ttodatem.value = "0" + todatem.value\n\t\t\t}\n\t\t\tif (todated.value < 10)\n\t\t\t{\n\t\t\t\ttodated.value = "0" + todated.value\n\t\t\t}\n\t\t\t\n\t}\n}\n\n</script>\n<script>\n//function to calculate month of \'To Date\'  by click event\nfunction onClickMonth(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\t\n\t\tvar fromdated = Number(document.getElementById("fromdated").value);\n\t\tvar fromdatem = Number(document.getElementById("fromdatem").value);\n\t\tvar todatem = document.getElementById("todatem");\n\t\ttodatem.value =  fromdatem;\n\t\tvar todated = document.getElementById("todated");\n\t\tdocument.getElementById(\'fromdatey\').focus(); \n\t\t var _thisMonth = new Date().getMonth();\n\t\t\n                if (fromdatem!=""&&!isNaN(fromdatem)){\n\n                }\n                else{\n                        todatem.value=_thisMonth;\n                        alert(\'Month Cannot be Null\');\n                        document.getElementById(\'fromdatem\').focus();      \n                }\n\t\n\t\tif (fromdated == "01")\n\t\t{         \n                        todatem.value =  fromdatem - 01;\n                        todated.value=new Date().getDate();\n                        \n                        if(fromdated=="01" && fromdatem==""){\n                                  todatem.value = new Date().getMonth();\n                        }\n\t\t\tif (fromdatem == "01")\n\t\t\t{\n\t\t\t\ttodatem.value = 12;\n\t\t\t}\n\t\t          \n\n\t\t\tif (fromdatem  == "05" || fromdatem  == "07"  || fromdatem  == "10" || fromdatem  == "12")\n\t\t\t{\n\t\t\t\ttodated.value=30;\n\t\t\t}\n\t\n\t\t\t\t\n\t\t\tif (fromdatem  == "04" || fromdatem  == "06" || fromdatem  == "02"|| fromdatem == "09" || fromdatem  == "11" || fromdatem == "01" || fromdatem  == "08")\n\t\t\t{\n\t\t\t\ttodated.value=31;\n\t\t\t}\n\t\n\t\t\n\t\t\tif (fromdatem  == "03")\n\t\t\t{\n\t\t\t\ttodated.value=28;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\telse\n\t\t\ttodated.value=fromdated-01;\n\t\t\t var _thisDate = new Date().getDate();\n\t\t         if (fromdated!=""&&!isNaN(fromdated)){\n\n                         }\n                         else{\n                \n                                todated.value=_thisDate;\n                                alert(\'Date Cannot be Null\');\n                                document.getElementById(\'fromdated\').focus();      \n                        }\n\t\t\tif (todatem.value < 10)\n\t\t\t{\n\t\t\t\ttodatem.value = "0" + todatem.value\n\t\t\t}\n\t\t\tif (todated.value < 10)\n\t\t\t{\n\t\t\t\ttodated.value = "0" + todated.value\n\t\t\t}\n\t\t\t\n\t\t          \n\t}\n\n\n</script>\n<script>\n//function to calculate year of \'To Date\' \nfunction toYear(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\tif (code==13)\n\t{\n\t\tvar fromdatey = parseInt(document.getElementById("fromdatey").value);\n                var todatey = document.getElementById("todatey");\n                todatey.value = fromdatey + 1;\n                document.getElementById(\'todated\').focus();\n\t\tvar fromdatem = parseInt(document.getElementById("fromdatem").value);\n\t\tvar todated = document.getElementById("todated");\n\t\tdocument.getElementById(\'todated\').focus();\n                var _thisYear = new Date().getFullYear();\n\t\t\n                if (fromdatey!=""&&!isNaN(fromdatey)){\n\n                }\n                else{\n                        todatey.value=_thisYear;\n                        alert(\'Year Cannot be Null\');\n                        document.getElementById(\'fromdatey\').focus();      \n                }\n\n\t\tif (fromdatem == "03" && fromdatey % 4 == 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t \ttodated.value=28;\n\t\t}\n\t\tif(fromdatem=="03" && fromdatey % 4 != 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 != 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=28;\n\t\t}\n\t\tif (fromdatem == "03" && (fromdatey + 1) % 4 == 0 && (!((fromdatey + 1)  % 100 == 0) || (fromdatey + 1) % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=29;\n\t\t}\n\t}\n\telse if (code==9) //9 code stands for tab key \n\t{\n\t\tvar fromdatey = parseInt(document.getElementById("fromdatey").value);\n                var todatey = document.getElementById("todatey");\n                todatey.value = fromdatey + 1;\n                \n\t\tvar fromdatem = parseInt(document.getElementById("fromdatem").value);\n\t\tvar todated = document.getElementById("todated");\n                var _thisYear = new Date().getFullYear();\n\t\t\n                if (fromdatey!=""&&!isNaN(fromdatey)){\n\n                }\n                else{\n                        todatey.value=_thisYear;\n                        alert(\'Year Cannot be Null\');\n                        document.getElementById(\'fromdatem\').focus();      \n                }\n\n\t\tif (fromdatem == "03" && fromdatey % 4 == 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t \ttodated.value=28;\n\t\t}\n\t\tif(fromdatem=="03" && fromdatey % 4 != 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 != 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=28;\n\t\t}\n\t\tif (fromdatem == "03" && (fromdatey + 1) % 4 == 0 && (!((fromdatey + 1)  % 100 == 0) || (fromdatey + 1) % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=29;\n\t\t}\n\t}\n}\n</script>\n<script>\n//function to calculate year of \'To Date\'  by click event\nfunction onClickYear(e,s)\n{\n\tif (!e) var e = window.event;\n\tif (e.keyCode) code = e.keyCode;\n\telse if (e.which) code = e.which;\n\t\n\t\tvar fromdatey = parseInt(document.getElementById("fromdatey").value);\n                var todatey = document.getElementById("todatey");\n                todatey.value = fromdatey + 1;\n              \n\t\tvar fromdatem = parseInt(document.getElementById("fromdatem").value);\n\t\tvar todated = document.getElementById("todated");\n                var _thisYear = new Date().getFullYear();\n\t\t\n                if (fromdatey!=""&&!isNaN(fromdatey)){\n\n                }\n                else{\n                        todatey.value=_thisYear;\n                        alert(\'Year Cannot be Null\');\n                        document.getElementById(\'fromdatey\').focus();      \n                }\n\n\t\tif (fromdatem == "03" && fromdatey % 4 == 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t \ttodated.value=28;\n\t\t}\n\t\tif(fromdatem=="03" && fromdatey % 4 != 0 && (!(fromdatey % 100 == 0) || fromdatey % 400 != 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=28;\n\t\t}\n\t\tif (fromdatem == "03" && (fromdatey + 1) % 4 == 0 && (!((fromdatey + 1)  % 100 == 0) || (fromdatey + 1) % 400 == 0 && fromdatem == "02"))\n\t\t{\n\t\t\ttodated.value=29;\n\t\t}\n\t}\n\n</script>\n\n\n<img src="/jquery/images/start.png" alt="background" id="bg" /> \n</head>\n<body onload="document.getElementById(\'selectorg\').focus()" onkeypress="keyright(event,\'selectorg\')"> \n\n<div  align="top" id="content" name="content">\n<div align="center" class="start1">\n<br>\n<fieldset id="fieldset_start"><legend ><strong><h3>Welcome</h3></strong></legend>  \n<p id="firstpara"><br>\n<font size=5><b>GNUKhata A Free And Open Source Accounting Software</font>\n<h3 align= "center"><font size=4>http://gnukhata.org</h3>\n\n<hr style="color:#0044FF" width=90% height =80% id="separator"><br>\n<table id="tbl" align="center">\n<tr>\n\t<td align="center"><font color="#0022FF">Features Of GNUKhata:<br></td>\n</tr>\n<tr>\n\t<td align="left"><font color="#0022FF">\n\t<ul>\n\t\t<li> &nbsp; It is lightweight</li>\n\t\t<li> &nbsp; It is scalable</li>\n\t\t<li> &nbsp; It is fast and robust</li>\n\t\t<li> &nbsp; It can be deployed for profit and non-profit organisations</li>\n\t</ul>\n\t</td>\n</tr>\n</table>\n</fieldset>\n<fieldset id="fieldset_start"><legend ><strong></strong></legend>  \n\n<h3 align= "center"><font size=4>previous = \u21e7, nextbutton = \u21e9, next = enter, checkbox = space</h3></fieldset>\n</p>\n</div>\n<br><img class="start_logo" alt="logo"  src="/images/finallogo.png"><br><br>\n<div align="center" class="start2">\n<br><br><br>\n<form id="frm_login" method = "post" action=')
        # SOURCE LINE 1039
        __M_writer(escape(h.url_for(controller='startup',action='login')))
        __M_writer(u'>\n<input type="button" name="selectorg" id="selectorg" onkeydown="keydowns(event,\'organisation\')" onkeypress="keydowns(event,\'neworg\')" onkeyup="keydown(event,\'organisation\')" value="Select Existing Organisation">\n<input type="hidden" name="countdown" size="3" value="15">\n<input type="hidden" name="yearfromdate" id="yearfromdate">\n<input type="hidden" name="yeartodate" id="yeartodate">\n<input type="hidden" name="yearfrom" id="yearfrom">\n<input type="hidden" name="yearto" id="yearto">\n<div id="toggle1" style="display:none;"><br><br>\t\t\t\n\t<table border="0" cellpadding="1" cellspacing="1" width="60%">\n\t<tr>\n\t\t<td><label for="organisation"><font size="3">Organisation Name</label></td>\n\t\t<td><select id="organisation" name="organisation" style = "Height:30px;Width: 200px;font-size:18px;" onkeyup="orgtoselect()">\n\t\t\t<option >--Select--</option>\n')
        # SOURCE LINE 1052
        for org in c.organisations:
            # SOURCE LINE 1053
            __M_writer(u'\t\t\t<option>')
            __M_writer(escape(org))
            __M_writer(u'</option>\n')
            pass
        # SOURCE LINE 1055
        __M_writer(u'\t\t\t</select>\n\t\t</td>\n\t\t<td></td>\n\t</tr>\n\t<tr></tr>\n\t<tr>\n\t\t<td ><label for="financial year" id="financial year_lbl"><font size="3">For Financial Year </label></td>\n\t\t<td><select id="financial year" onkeypress="keyup(event,\'organisation\')" style = "Height:30px;Width: 200px;font-size:18px;" onkeyup="keydown(event,\'NextLogin\')" name="financial year" ><option></option></select></td>\n\t\t\n\t</tr>\t\t\n\t<tr>\n\t\t<td colspan="1"></td>\n\t\t<td><input type="submit" id="NextLogin" onkeypress="keyup(event,\'financial year\')" value="Proceed" src="/images/button.png"></td>\n\t</tr>\n\t</table>\n</div>\n</form>\n<form id="frm_new" method = "post" action=')
        # SOURCE LINE 1072
        __M_writer(escape(h.url_for(controller='startup',action='render_initialsetup')))
        __M_writer(u'><br>\n<input type="button" 8name="neworg" id="neworg" onkeyup="keydown(event,\'orgname\')" onkeypress="keyup(event,\'selectorg\')" onkeydown="keydowns(event,\'orgname\')" value="Create  New  Organisation">\n<div id="toggle2" style="display:none;">\n\t<table border ="0" width="60%" cellpadding="1" cellspacing="1">\n\t<tr>\n\t\t<td width="15%"><font size="3">Organisation Name</td>\n\t\t<td width="60%">\n\t\t<input type="text" id="orgname" onchange = "change_case();" style = "Height:30px;Width: 200px;font-size:18px;" onkeypress="keydown(event,\'organisationType\')" onKeydown="return disableEnterKey(event)" onKeyup="keyup(event,\'neworg\')" name="orgname"  class="Required" maxlength="50"><br><font size="3">(Maximum Characters: 50)</td>\n\t</tr>\t\n\t<tr>\n\t\t<td><font size="3">Organisation Type<br></td>\n\t\t<td>\n\t\t\t<select id="organisationType" style = "Height:40px;Width: 200px;font-size:19px;"  name="organisationType" onkeyup="typetoname()" onkeypress="keydown(event,\'fromdated\')" onKeydown="return disableEnterKey(event)">\n\t\t\t<option>Profit Making</option>\n\t\t\t<option>NGO</option>\n\t\t\t</select>\n\t\t\t\n\t\t</td>\n\t</tr>\n\t</tr>\n\t<tr>\n\t\t<td><font size="3">Financial Year</td>\n\t\t<td>\n\t\t\t<table>\n\t\t\t<tr><td><font size="3">From Date:<input type="text" size="1" style = "Height:30px;Width: 30px;font-size:18px;" maxlength="2" id="fromdated" onchange="validate(this);" onKeydown="return disableEnterKey(event)" onkeypress="keydown(event,\'fromdatem\')" onkeyup="keyup(event,\'organisationType\')"  name="fromdated" class="dated" onblur="CheckTextboxBlank();">-<input type="text" maxlength="2" style = "Height:30px;Width: 30px;font-size:18px;" id="fromdatem" onchange="validmonth(this);" onKeydown="return disableEnterKey(event)" onkeypress="toMonth(event,\'fromdatey\')" onkeyup="keyup(event,\'fromdated\')"   size="1" name="fromdatem" class="datem" onfocus="kk2()">-<input type="text" style = "Height:30px;Width: 80px;font-size:18px;" onchange="validyear(this);" size="2" id="fromdatey" onkeypress="toYear(event,\'todated\')" maxlength="4" onclick="onClickMonth(event,\'fromdatey\');"  onkeyup="keyup(event,\'fromdatem\')" onKeydown="return disableEnterKey(event)" name="fromdatey" class="datey">\n\t\t<br>\n\t\tTo Date :&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="1" maxlength="2" id="todated" onkeypress="keydown(event,\'todatem\')" onkeyup="keyup(event,\'fromdatey\')" onchange="validate(this);" style = "Height:30px;Width: 30px;font-size:18px;" onKeydown="return disableEnterKey(event)" name="todated" class="dated">-<input type="text" maxlength="2" id="todatem" onkeypress="keydown(event,\'todatey\')" onchange="validmonth(this);" onchange="validmonth(this);" style = "Height:30px;Width: 30px;font-size:18px;" onkeyup="keyup(event,\'todated\')" onKeydown="return disableEnterKey(event)" size="1" name="todatem" class="datem" >-<input type="text" size="2" maxlength="4" onclick="onClickYear(event,\'todated\');" onchange="validyear(this);" id="todatey" onkeyup="keydown(event,\'newsubmitbutton\')" maxlength="4" style = "Height:30px;Width: 80px;font-size:18px;" onkeypress="keyup(event,\'todatem\')" onKeydown="return disableEnterKey(event)" name="todatey" class="datey" ></td></tr>\t\n\t\t\t</table>\n\t\t</td>\n\t</tr><br>\n\t<tr>\n\t\t<td width ="30%"></td>\n\t\t<td width ="50%" align = "center"><input id="newsubmitbutton"  onkeyup="keyup(event,\'todatey\')" type="submit" value="Next" src="/images/button.png" enabled="false"></td></tr>\n\t</table>\n</div>\n</form>\t\n</div>\n</div> \t\t\t\t\t\n</body>\n</html>\n\n\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 33
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n\n ')
        # SOURCE LINE 6
        __M_writer(escape(c.content_id))
        __M_writer(u' | ')
        __M_writer(escape(c.object_id))
        __M_writer(u' | ')
        __M_writer(escape(c.search_terms))
        __M_writer(u' | ')
        __M_writer(escape(c.referrer))
        __M_writer(u' | ')
        __M_writer(escape(c.user_agent))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 34
0
def render_body(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        enumerate = context.get('enumerate', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(
            u'\n\t<h2>Seznam sout\u011b\u017e\xed</h2>\n\t<table class="dark">\n\t<thead>\n\t\t<th class="ns"></th>\n\t\t<th width=80%>N\xe1zev</th>\n\t\t<th>\u0158e\u0161itel\u016f</th>\n\t</thead>\n'
        )
        # SOURCE LINE 13
        for i, task in enumerate(c.list):
            # SOURCE LINE 14
            __M_writer(u'\t\t<tr>\n\t\t\t<td class="ns">')
            # SOURCE LINE 15
            __M_writer(escape(i + 1))
            __M_writer(u'</td>\n\t\t\t<td><a href=')
            # SOURCE LINE 16
            __M_writer(
                escape(h.url_for(controller="task", action="show",
                                 id=task.id)))
            __M_writer(u'>')
            __M_writer(escape(task.name))
            __M_writer(u'</a></td>\n\t\t\t<td style="text-align:center;">')
            # SOURCE LINE 17
            __M_writer(escape(c.okUsers(task.id)))
            __M_writer(u'</td>\n\t\t</tr>\n')
            pass
        # SOURCE LINE 20
        __M_writer(u'\t</table>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 35
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 3
        __M_writer(u'\n')
        # SOURCE LINE 4
        __M_writer(escape(h.literal(c.content)))
        __M_writer(u'\n<h2>Top News</h2>\n<br/>\n\n\n<br/><a href="news/')
        # SOURCE LINE 9
        __M_writer(escape(c.firstlink[0][0]))
        __M_writer(u'"> ')
        __M_writer(escape(c.firstlink[0][1]))
        __M_writer(u'</a><br/>\n\n')
        # SOURCE LINE 11
        for a in c.article:
            # SOURCE LINE 12
            __M_writer(u'<br/><a href="news/')
            __M_writer(escape(a[0]))
            __M_writer(u'"> ')
            __M_writer(escape(a[1]))
            __M_writer(u'</a><br/>\n')
        # SOURCE LINE 14
        __M_writer(u'<br/><br/>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 36
0
def render_body(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 3
        __M_writer(u'\n')
        # SOURCE LINE 4
        __M_writer(escape(h.literal(c.content)))
        __M_writer(u'\n<h2>Top News</h2>\n<br/>\n\n\n<br/><a href="news/')
        # SOURCE LINE 9
        __M_writer(escape(c.firstlink[0][0]))
        __M_writer(u'"> ')
        __M_writer(escape(c.firstlink[0][1]))
        __M_writer(u'</a><br/>\n\n')
        # SOURCE LINE 11
        for a in c.article:
            # SOURCE LINE 12
            __M_writer(u'<br/><a href="news/')
            __M_writer(escape(a[0]))
            __M_writer(u'"> ')
            __M_writer(escape(a[1]))
            __M_writer(u'</a><br/>\n')
        # SOURCE LINE 14
        __M_writer(u'<br/><br/>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 37
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        self = context.get('self', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\n\t<head>\n\t\t<title>Easy API</title>\n\t\t<link rel="stylesheet" href="/css/reset.css" type="text/css" />\n\t\t<link rel="stylesheet" href="/css/style.css" type="text/css" />\n\t\t<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />\n\t\t'
        )
        # SOURCE LINE 8
        __M_writer(escape(self.head_tags()))
        __M_writer(u'\n\t</head>\n\t<body>\n\t\t<div id="header">\n\t\t\t')
        # SOURCE LINE 12
        __M_writer(escape(self.header()))
        __M_writer(u'\n\t\t</div>\n\t\t\n\t\t<div id="sidebar">\n\t\t\t')
        # SOURCE LINE 16
        __M_writer(escape(self.sidebar()))
        __M_writer(u'\n\t\t</div>\n\t\t\n\t\t<div id="content">\n\t\t\t')
        # SOURCE LINE 20
        __M_writer(escape(self.content()))
        __M_writer(
            u'\n\t\t</div>\n\t\t\n\t\t<div id="footer">\n\t\t</div>\n\t</body>\n</html>'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(escape(h.field(
    "Name",
    h.text(name='name'),
    required=False,
)))
        # SOURCE LINE 5
        __M_writer(u'\r\n')
        # SOURCE LINE 6
        __M_writer(escape(h.field(
    "Email",
    h.text(name='email'),
    required=True,
    field_desc = 'Use to help prevent spam but will not be published'
)))
        # SOURCE LINE 11
        __M_writer(u'\r\n')
        # SOURCE LINE 12
        __M_writer(escape(h.field(
    "Comment",
    h.textarea(name='content', rows=7, cols=40),
    required=True,
)))
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 39
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 6
        __M_writer(u'\n\n<h1>')
        # SOURCE LINE 8
        __M_writer(escape(c.pagetitle))
        __M_writer(u'</h1>\n\n<form name="add" method="POST" action=\n      "')
        # SOURCE LINE 11
        __M_writer(escape(url(controller='dobitem', action='addtodb')))
        __M_writer(u'">\n  <div id="singlelines">\n  <table>\n    <tr>\n      <th class="itemdetails_leftcol"><label for="rep">REP number:</label></th>\n      <td><input type="text" name="rep" value="')
        # SOURCE LINE 16
        __M_writer(escape(c.newrep))
        __M_writer(u'" /></td>\n    </tr>\n    <tr>\n      <th><label for="initials">Initials:</label></th>\n      <td><input type="text" name="initials" value="AF" /></td>\n    </tr>\n    <tr>\n      <th><label for="customer">Customer:</label></th>\n      <td>\n        <select name="customer">\n          <option value="TESCO">Tesco</option>\n          <option value="HSBC">HSBC</option>\n          <option value="SPECSAVERS">Specsavers</option>\n        </select>\n        <input type="checkbox" name="fujitsuowned" id="fujitsuowned" /><label\n          for="fujitsuowned">Fujitsu owned</label>\n      </td>\n    </tr>\n    <tr>\n      <th><label for="value">Value:</label></th>\n      <td><input type="text" name="value" value="0.00"/></td>\n    </tr>\n    <tr>\n      <th><label for="costcentre">Cost centre:</label></th>\n      <td><input type="text" name="costcentre" /></td>\n    </tr>\n    <tr>\n      <th><label for="order">Order number:</label></th>\n      <td><input type="text" name="order" /></td>\n    </tr>\n  </table>\n\n  <table>\n    <tr>\n      <th class="itemdetails_leftcol"><label for="make">Make:</label></th>\n      <td><input type="text" name="make" /></td>\n    </tr>\n    <tr>\n      <th><label for="model">Model:</label></th>\n      <td><input type="text" name="model" /></td>\n    </tr>\n    <tr>\n      <th><label for="part">Part number:</label></th>\n      <td><input type="text" name="part" /></td>\n    </tr>\n    <tr>\n      <th><label for="serial">Serial number:</label></th>\n      <td><input type="text" name="serial" /></td>\n    </tr>\n    <tr>\n      <th><label for="asset">Asset tag:</label></th>\n      <td><input type="text" name="asset" /></td>\n    </tr>\n    <tr>\n      <th><label for="warranty">Warranty:</label></th>\n      <td><input type="text" name="warranty" /></td>\n    </tr>\n  </table>\n\n  <table>\n    <tr>\n      <th class="itemdetails_leftcol"><label for="location">Location:</label></th>\n      <td><input type="text" name="location" /></td>\n    </tr>\n  </table>\n  </div>\n  <div id="textareas">\n    <p>Issue:</p>\n    <div class="textarea"><textarea name="issue"></textarea></div>\n    <p>Current State:</p>\n    <div class="textarea"><textarea name="state">Awaiting parts/test</textarea></div>\n    <input type="submit" name="submit" value="Submit" />\n  </div>\n\n</form>\n<div id="formender">\n<a href="')
        # SOURCE LINE 92
        __M_writer(escape(url(controller='dobitem', action='index')))
        __M_writer(u'">Return to index</a>\n</div>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 40
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        if c.song.albumart.isspace():
            # SOURCE LINE 2
            __M_writer(u'<img src="/albumart.jpg" alt="" class="albumart"/>\n')
            # SOURCE LINE 3
        else:
            # SOURCE LINE 4
            __M_writer(u'<img src="')
            __M_writer(escape(c.song.albumart))
            __M_writer(u'" alt="" class="albumart"/>\n')
        # SOURCE LINE 6
        __M_writer(u'\n<span class="songname">\n  ')
        # SOURCE LINE 8
        __M_writer(escape(c.song.artist))
        __M_writer(u' - ')
        __M_writer(escape(c.song.title))
        __M_writer(u'\n</span>\n<div class="info scroll-pane">\n  ')
        # SOURCE LINE 11

        context.write(c.song.content)

        # SOURCE LINE 13
        __M_writer(u'\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 41
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n<ul id="titles">\n\n')
        # SOURCE LINE 7
        for pv in c.pvs:
            # SOURCE LINE 8
            __M_writer(u'\n  <li>\n        ')
            # SOURCE LINE 10
            __M_writer(escape(pv.st_id))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_user_agent))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_url))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_spider_date))
            __M_writer(u'\n  </li>\n\n')
        # SOURCE LINE 14
        __M_writer(u'\n</ul>')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        dir = context.get('dir', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n<h2>Huzzah! You\'ve completed this assignment.</h2> <br/></br><h2> Nice work.</h2>\n\n<script type="text/javascript">    \n    function setup_js(){\n\n')
        if not 'assignment' in dir(c):
            if c.assignment.num_assigned and c.assignment.num_assigned > 0:
                __M_writer(u'            $("#progress").html("you\'ve screened <b>')
                __M_writer(escape(c.assignment.done_so_far))
                __M_writer(u'</b> out of <b>')
                __M_writer(escape(c.assignment.num_assigned))
                __M_writer(u'</b> so far (nice going!)");\n')
            else:
                __M_writer(u'            $("#progress").html("you\'ve screened <b>')
                __M_writer(escape(c.assignment.done_so_far))
                __M_writer(u'</b> abstracts thus far, and, regrettably, there are no more for you to screen.");\n')
        else:
            __M_writer(u'          $("#progress").html("");\n')
        __M_writer(u'\n\n        $(\'#buttons\').html("");\n        //alert("???");\n        $(\'#buttons\').remove()\n        $(\'#tags_container\').remove();\n        $(\'#label_terms\').remove();\n        \n    }\n</script>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 43
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'catalog')._populate(_import_ns, [u'*'])
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        search = _import_ns.get('search', context.get('search', UNDEFINED))
        all_sections = _import_ns.get('all_sections', context.get('all_sections', UNDEFINED))
        def search_results():
            return render_search_results(context.locals_(__M_locals))
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\r\n\r\n')
        # SOURCE LINE 3
        __M_writer(u'\r\n<h3><a href="')
        # SOURCE LINE 4
        __M_writer(escape(h.url(controller='catalog', action='section', id='1')))
        __M_writer(u'">\u041a\u0430\u0442\u0430\u043b\u043e\u0433</a> > \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430</h3>\r\n    <div id="yui-main">\r\n        <div class="yui-b">\r\n             ')
        # SOURCE LINE 7
        __M_writer(escape(search_results()))
        __M_writer(u'     \r\n        </div>\r\n    </div>\r\n    <div class="yui-b">\r\n        ')
        # SOURCE LINE 11
        __M_writer(escape(all_sections()))
        __M_writer(u'\r\n        ')
        # SOURCE LINE 12
        __M_writer(escape(search()))
        __M_writer(u'\r\n    </div>\r\n\r\n')
        # SOURCE LINE 17
        __M_writer(u'\r\n\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 44
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, 'fields')._populate(_import_ns, ['*'])
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        fields = _mako_get_namespace(context, 'fields')
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n')
        # SOURCE LINE 2
        __M_writer(u'\n\n')
        # SOURCE LINE 6
        __M_writer(u'\n\n\n')
        # SOURCE LINE 9
        __M_writer(escape(h.form_start(h.url_for(controller='floorplan', action='create'), method="post")))
        __M_writer(u'\n    ')
        # SOURCE LINE 10
        __M_writer(escape(fields.body()))
        __M_writer(u'\n    ')
        # SOURCE LINE 11
        __M_writer(escape(h.field(field=h.submit(value="Add Unit", name='submit'))))
        __M_writer(u'\n')
        # SOURCE LINE 12
        __M_writer(escape(h.form_end()))
        __M_writer(u'\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 45
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        app_globals = context.get('app_globals', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n  <head>\n    <title>'
        )
        # SOURCE LINE 5
        __M_writer(escape(app_globals.TITLE))
        __M_writer(
            u'</title>\n\t<link rel="stylesheet" href="/styles.css" type="text/css" />\n  </head>\n  <body>\n\t<div id="header">\n  \t\t<h1>'
        )
        # SOURCE LINE 10
        __M_writer(escape(app_globals.TITLE))
        __M_writer(u'</h1>\n    </div>\n\t<div id="body">\n\t\t')
        # SOURCE LINE 13
        __M_writer(escape(c.body))
        __M_writer(u'\n\t</div>\n  </body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 46
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n<p>')
        # SOURCE LINE 3
        __M_writer(escape(c.projects.count()))
        __M_writer(u' new projects!</p>\n\n')
        # SOURCE LINE 5
        for project in c.projects:
            # SOURCE LINE 6
            __M_writer(u'<p class="content" style="border-style:solid;border-width:1px">\n        <span class="h3"> ')
            # SOURCE LINE 7
            __M_writer(escape(project.title))
            __M_writer(u' </span>\n        <span class="h4">Created at ')
            # SOURCE LINE 8
            __M_writer(escape(project.created))
            __M_writer(u'</span>\n        <br>\n          ')
            # SOURCE LINE 10
            __M_writer(escape(project.description))
            __M_writer(u'\n</p>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 47
0
def render_swiki_edit(context):
    context.caller_stack._push_frame()
    try:
        forms = _mako_get_namespace(context, 'forms')
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 70
        __M_writer(
            u'\n<div class="zeditsw mr5">\n    <div class="pb2 posr ralign" style="border-bottom : 1px solid gray">\n        <span><a href="'
        )
        # SOURCE LINE 73
        __M_writer(escape(h.url_swpage))
        __M_writer(
            u'">Back-to-Page</a></span>\n    </div>\n    <div class="dispnone mt10 ml10 mr10">\n        <fieldset style="background: #F4F4F4 url(/preview_bg.png) repeat scroll 0">\n            <legend>Preview( <a href="#edit">edit</a> )</legend>\n            <div class="ml10 mr10 swpreview"></div>\n        </fieldset>\n        <br/>\n        <hr/>\n    </div>\n    <div class="mt10">\n        <a name="edit"></a>\n        '
        )
        # SOURCE LINE 85
        __M_writer(
            escape(
                forms.form_editsw(c.authuser, c.swiki, c.wikitypenames,
                                  h.suburl_editsw, h.url_swpage)))
        # SOURCE LINE 86
        __M_writer(u'\n    </div>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'fields')._populate(_import_ns, [u'*'])
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        fields = _mako_get_namespace(context, 'fields')
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n    ')
        # SOURCE LINE 5
        __M_writer(escape(h.form_start(h.url_for(action = 'save'), method = 'post')))
        __M_writer(u'\n    ')
        # SOURCE LINE 6
        __M_writer(escape(fields.body()))
        __M_writer(u'\n    ')
        # SOURCE LINE 7
        __M_writer(escape(h.field(field = h.submit(value = "Save", name = "submit"))))
        __M_writer(u'\n    ')
        # SOURCE LINE 8
        __M_writer(escape(h.form_end()))
        __M_writer(u'\n\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 49
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        self = context.get('self', UNDEFINED)
        next = context.get('next', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(
            u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n<html>\n  <head>\n    <title>Tracking</title>\n    '
        )
        # SOURCE LINE 6
        __M_writer(escape(h.stylesheet_link('/screen.css')))
        __M_writer(
            u'\n  </head>\n\n  <body>\n\n    <div class="content">\n\n      <h1 class="main">'
        )
        # SOURCE LINE 13
        __M_writer(escape(self.header()))
        __M_writer(u'</h1>\n\n      ')
        # SOURCE LINE 15
        __M_writer(escape(next.body()))
        __M_writer(u'')
        # SOURCE LINE 16
        __M_writer(
            u'\n      <p class="footer"></p>\n\n    </div>\n  </body>\n</html>'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 50
0
def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n')
        __M_writer(u'\n\n')
        if c.login_counter > 1:
            __M_writer(u'    Incorrect Username or Password\n')
        __M_writer(u'\n<center>\n<div class="content">\n<form action="')
        __M_writer(escape(url(controller='account', action='login_handler'
,came_from=c.came_from, __logins=c.login_counter)))
        __M_writer(u'" method="POST">\n<label for="login">username</label>\n<input type="text" id="login" name="login" /><br />\n<label for="password">password</label>\n<input type="password" id="password" name="password" /><br />\n<input type="submit" id="submit" value="Submit" />\n</form>\n</div>\n\n')
        if "join/" in c.came_from:
            __M_writer(u'\tdon\'t have an account yet? <a href="')
            __M_writer(escape(url(controller='account', action='create_account', then_join=c.came_from.split("join/")[1])))
            __M_writer(u'">register here</a>.<br/>\t\n')
        else:
            __M_writer(u'\tdon\'t have an account yet? <a href="')
            __M_writer(escape(url(controller='account', action='create_account')))
            __M_writer(u'">register here</a>.<br/>\n')
        __M_writer(u'or maybe you forget your password? <a href="')
        __M_writer(escape(url(controller='account', action='recover_password')))
        __M_writer(u'">recover it</a>.\n</center>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 51
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n\n')
        # SOURCE LINE 6
        for resource in c.resources:
            # SOURCE LINE 7
            __M_writer(u'<div class="content">\n        <h2> ')
            # SOURCE LINE 8
            __M_writer(escape(resource.title))
            __M_writer(u' </h2>\n        <strong style="display: none">')
            # SOURCE LINE 9
            __M_writer(escape(resource.name))
            __M_writer(u'</strong>\n        <p>Created at ')
            # SOURCE LINE 10
            __M_writer(escape(resource.created))
            __M_writer(u'</p>\n        <p>Modified at ')
            # SOURCE LINE 11
            __M_writer(escape(resource.modified))
            __M_writer(u'</p>\n        <p>\n          ')
            # SOURCE LINE 13
            __M_writer(escape(resource.description))
            __M_writer(u'\n        </p>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 52
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n<ul id="titles">\n\n')
        # SOURCE LINE 7
        for pv in c.pvs:
            # SOURCE LINE 8
            __M_writer(u'\n  <li>\n        ')
            # SOURCE LINE 10
            __M_writer(escape(pv.st_id))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_user_agent))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_url))
            __M_writer(u' | ')
            __M_writer(escape(pv.st_spider_date))
            __M_writer(u'\n  </li>\n\n')
        # SOURCE LINE 14
        __M_writer(u'\n</ul>')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 53
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 9
        __M_writer(u'\n\n')
        # SOURCE LINE 11
        for link in c.pager.items:
            # SOURCE LINE 12
            __M_writer(u'<div class="link">\n    <a href="')
            # SOURCE LINE 13
            __M_writer(escape(link.url))
            __M_writer(u'">')
            __M_writer(escape(link.title))
            __M_writer(u'</a>\n    <p>')
            # SOURCE LINE 14
            __M_writer(escape(link.description))
            __M_writer(u'</p>\n</div>\n')
        # SOURCE LINE 17
        __M_writer(u'\n')
        # SOURCE LINE 18
        __M_writer(escape(c.pager.pager()))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_body(context):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        enumerate = context.get('enumerate', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n\t<h2>Seznam sout\u011b\u017e\xed</h2>\n\t<table class="dark">\n\t<thead>\n\t\t<th class="ns"></th>\n\t\t<th width=80%>N\xe1zev</th>\n\t\t<th>\u0158e\u0161itel\u016f</th>\n\t</thead>\n')
        # SOURCE LINE 13
        for i, task in enumerate(c.list):
            # SOURCE LINE 14
            __M_writer(u'\t\t<tr>\n\t\t\t<td class="ns">')
            # SOURCE LINE 15
            __M_writer(escape(i+1))
            __M_writer(u'</td>\n\t\t\t<td><a href=')
            # SOURCE LINE 16
            __M_writer(escape(h.url_for(controller="task", action="show", id=task.id)))
            __M_writer(u'>')
            __M_writer(escape(task.name))
            __M_writer(u'</a></td>\n\t\t\t<td style="text-align:center;">')
            # SOURCE LINE 17
            __M_writer(escape(c.okUsers(task.id)))
            __M_writer(u'</td>\n\t\t</tr>\n')
            pass
        # SOURCE LINE 20
        __M_writer(u'\t</table>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 55
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n\n ')
        # SOURCE LINE 6
        __M_writer(escape(c.content_id))
        __M_writer(u' | ')
        __M_writer(escape(c.object_id))
        __M_writer(u' | ')
        __M_writer(escape(c.search_terms))
        __M_writer(u' | ')
        __M_writer(escape(c.referrer))
        __M_writer(u' | ')
        __M_writer(escape(c.user_agent))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 56
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        self = context.get('self', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\r\n"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html>\r\n\t<head>\r\n\t\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r\n\t\t<link rel="shortcut icon" href="/favicon.ico">\r\n\t\t')
        # SOURCE LINE 8
        __M_writer(escape(h.javascript_link(url('/_static/js/base.js'))))
        __M_writer(u'\r\n\t\t')
        # SOURCE LINE 9
        __M_writer(escape(h.stylesheet_link(url('/_static/css/base.css'))))
        __M_writer(u'\r\n\t\t\r\n\t\t')
        # SOURCE LINE 11
        __M_writer(escape(self.head_tags()))
        __M_writer(u'\r\n\t</head>\r\n\t<body>\r\n\t\t')
        # SOURCE LINE 14
        __M_writer(escape(self.body()))
        __M_writer(u'\r\n\t</body>\r\n</html>')
        return ''
    finally:
        context.caller_stack._pop_frame()
def render_buildrow(context,tag,odd=True):
    context.caller_stack._push_frame()
    try:
        h = context.get('h', UNDEFINED)
        unicode = context.get('unicode', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\r\n    <tr class="')
        # SOURCE LINE 6
        __M_writer(escape(odd and 'odd' or 'even'))
        __M_writer(u'">\r\n        <td valign="top">\r\n            ')
        # SOURCE LINE 8
        __M_writer(escape(h.link_to(
                tag.id,
                h.url(
                    controller=u'tag',
                    action='view',
                    id=unicode(tag.id)
                )
            )))
        # SOURCE LINE 15
        __M_writer(u'\r\n        </td>\r\n        <td valign="top">\r\n            ')
        # SOURCE LINE 18
        __M_writer(escape(tag.name))
        __M_writer(u'\r\n        </td>\r\n    </tr>\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 58
0
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(escape(h.field(
  "Nickame",
  h.text(name = 'nickname'),
  required = False,
)))
        # SOURCE LINE 5
        __M_writer(u'\n\n')
        # SOURCE LINE 7
        __M_writer(escape(h.field(
  "Time Diff",
  h.text(name = 'time_diff'),
  required = False,
)))
        # SOURCE LINE 11
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 59
0
def render_body(context, **pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n<div class="content wrapper about">\n\n  ')
        # SOURCE LINE 5
        messages = h.flash.pop_messages()

        __M_locals.update(
            __M_dict_builtin([(__M_key, __M_locals_builtin()[__M_key])
                              for __M_key in ['messages']
                              if __M_key in __M_locals_builtin()]))
        __M_writer(u'\n')
        # SOURCE LINE 6
        if messages:
            # SOURCE LINE 7
            __M_writer(u'  <ul id="failure-flash-messages">\n')
            # SOURCE LINE 8
            for message in messages:
                # SOURCE LINE 9
                __M_writer(u'    <li>')
                __M_writer(escape(message))
                __M_writer(u'</li>\n')
            # SOURCE LINE 11
            __M_writer(u'  </ul>\n')
        # SOURCE LINE 13
        __M_writer(
            u'\n  <p>\n    MyMusic is a free Open Source Decentralized P2P music streaming server.<br>\n    You can share your music with anyone you like via the internet.<br>\n    Just set up the server on your machine with your music and connect to your computer to listen to your songs.\n  </p>\n  <br>\n  <p>\n    <h3>Setting-Up:</h3>\n    <ol>\n      <li>\n\t<p>\n\t  Register your Application with facebook <a href="http://www.facebook.com/developers/apps.php">here</a>.\n\t  MyMusic relies on facebook for authentication.\n\t  Make sure that the information in the setup files are correct.\n\t  If you are in localhost, you are the admin. You can get your IP on your '
        )
        # SOURCE LINE 28
        __M_writer(
            escape(
                h.link_to('settings page',
                          url(
                              controller='admin',
                              action='index',
                          ))))
        __M_writer(
            u'\n\t</p>\n      </li>\n      <li>\n\t<p>\n\t  Once your application has been set up with facebook, you need to add\n\t  songs to your music library. Go to the '
        )
        # SOURCE LINE 34
        __M_writer(
            escape(
                h.link_to('admin page',
                          url(
                              controller='admin',
                              action='index',
                          ))))
        __M_writer(
            u'\n\t  and add your music.\n\t  You can also get information and albumart from Lastfm.\n\t</p>\n      </li>\n      <li>\n\t<p>\n\t  Thats it! You are now ready to share your music with your friends.\n\t</p>\n      </li>\n    </ol>\n  </p>\n  <br><br>\n  <p>MyMusic - written and maintained by Nandit Tiku</p>\n  <p>Contact: nandittiku AT gmail d0t com</p>\n</div>\n\n'
        )
        return ''
    finally:
        context.caller_stack._pop_frame()
Esempio n. 60
0
def test_lit_re():
    lit = literal('This is a <string>')
    unlit = 'This is also a <string>'

    result = lit_sub(r'<str', literal('<b'), lit)
    eq_(u'This is a <bing>', escape(result))

    result = lit_sub(r'a <str', 'a <b> <b', unlit)
    eq_(u'This is also a &lt;b&gt; &lt;bing&gt;', escape(result))