Commit 34787f16 by aagusti

update server

1 parent 8d6df756
...@@ -283,7 +283,7 @@ def view_add(request): ...@@ -283,7 +283,7 @@ def view_add(request):
return session_failed(request, SESS_ADD_FAILED) return session_failed(request, SESS_ADD_FAILED)
return dict(form=form, private_key=private_key, found=found, data_key=data_key) return dict(form=form, private_key=private_key, found=found, data_key=data_key)
def query_id(request): def query_id(request):
engInformix = EngInformix() engInformix = EngInformix()
sql_result1 = """ sql_result1 = """
......
...@@ -139,7 +139,7 @@ class AddSchema(colander.Schema): ...@@ -139,7 +139,7 @@ class AddSchema(colander.Schema):
colander.String(), colander.String(),
missing=colander.drop, missing=colander.drop,
title = 'Thn. Pembuatan', title = 'Thn. Pembuatan',
oid="th_buatan" oid="th_buatan"
) )
tg_akhir_pjklm = colander.SchemaNode( tg_akhir_pjklm = colander.SchemaNode(
colander.String(), colander.String(),
......
...@@ -192,7 +192,7 @@ class ViewLaporan(BaseViews): ...@@ -192,7 +192,7 @@ class ViewLaporan(BaseViews):
def reports_act(self): def reports_act(self):
global awal, akhir, tgl_awal, tgl_akhir,u,unit_kd,unit_nm,unit_al,now,thn,thun,bulan,bulan2 global awal, akhir, tgl_awal, tgl_akhir,u,unit_kd,unit_nm,unit_al,now,thn,thun,bulan,bulan2
req = self.request req = self.request
params = req.params params = req.params
url_dict = req.matchdict url_dict = req.matchdict
if not req.user: if not req.user:
req_user = False req_user = False
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
${structure:field.serialize()} ${structure:field.serialize()}
<script> <script>
$(document).ready(function () { $(document).ready(function () {
//Membatasi 4 Digit & Membatasi Huruf //Membatasi 4 Digit & Membatasi Huruf
$('#m_pjk_thn').keyup(function(){ $('#m_pjk_thn').keyup(function(){
var m_pjk_thn = this.value.length; var m_pjk_thn = this.value.length;
if(!/^[0-9]+$/.test(this.value)){ if(!/^[0-9]+$/.test(this.value)){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!