1 2<HTML> 3<HEAD> 4 <META http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 5 <META http-equiv="X-UA-Compatible" content="chrome=1"> 6 <TITLE>SIVDÃO</TITLE> 7 8 <LINK rel="shortcut icon" href="/site_media/favicon.ico" > 9 10 11 12
12<SCRIPT type="text/javascript" src="/site_media/js-lib/extjs/adapter/ext/ext-base.js"></SCRIPT>
12 13
13<SCRIPT type="text/javascript" src="/site_media/js-lib/extjs/ext-all-debug.js"></SCRIPT>
13 14
14<SCRIPT type="text/javascript" src="/site_media/js-lib/extjs-utils/LocalStorageProvider.js"></SCRIPT>
14 15 16 17 18 19 <LINK rel="stylesheet" type="text/css" href="/site_media/js-lib/extjs/resources/css/ext-all.css" /> 20 21 22 23 <LINK rel="stylesheet" type="text/css" href="/site_media/css/sivd.css" /> 24 25 26 27 28 29 30 31 32 33 34 35 36 37
37<SCRIPT type="text/javascript"> 38 Ext.BLANK_IMAGE_URL = '/site_media/js-lib/extjs/resources/images/default/s.gif'; 39 40 Ext.state.Manager.setProvider(new Ext.state.LocalStorageProvider({prefix: 'SIVD-'})); 41 </SCRIPT>
41 42 43 44 45 46 47 48 49
49<SCRIPT type="text/javascript"> 50 Ext.onReady(function () { 51 function getCookie(name) { 52 var value = "; " + document.cookie; 53 var parts = value.split("; " + name + "="); 54 if (parts.length == 2) return parts.pop().split(";").shift(); 55 } 56 var token = getCookie('csrftoken'); 57 if (!token) { 58 Ext.Msg.alert('Erro', 'Missing csrftoken cookie!'); 59 } else { 60 Ext.Ajax.defaultHeaders = Ext.apply(Ext.Ajax.defaultHeaders || {}, { 61 'X-CSRFToken': token 62 }); 63 } 64 }); 65 </SCRIPT>
65 66 67 68 69 70
71<SCRIPT type="text/javascript"> 72 Ext.onReady(function(){ 73 Ext.QuickTips.init(); 74 var login = new Ext.FormPanel({ 75 labelWidth: 80, 76 url: '/accounts/checklogin/', 77 frame: true, 78 title: 'Autenticação', 79 defaultType: 'textfield', 80 monitorValid: true, 81 waitMsgTarget: true, 82 items:[{ 83 fieldLabel:'Utilizador', 84 name:'loginUsername', 85 allowBlank: false 86 },{ 87 fieldLabel:'Password', 88 name:'loginPassword', 89 inputType:'password', 90 allowBlank: false 91 }], 92 buttons:[{ 93 text: 'Login', 94 formBind: true, 95 handler: function () { 96 login.getForm().submit({ 97 method: 'POST', 98 waitTitle: 'A ligar', 99 waitMsg: 'A enviar os dados...', 100 success: function (form, action) { 101 Ext.Msg.alert('Informação', 'Login com sucesso!', function (btn, text) { 102 if (btn == 'ok') { 103 window.location = 'http://sivdao.cvrdao.pt/main/'; 104 } 105 }); 106 }, 107 failure: function (form, action) { 108 if (action.failureType == 'server') { 109 obj = Ext.util.JSON.decode(action.response.responseText); 110 Ext.Msg.alert('Falha no Login!', obj.errors.reason); 111 } else { 112 Ext.Msg.alert('Erro', 'Falha a contactar o Servidor de Autenticação: ' + action.response.responseText); 113 } 114 login.getForm().reset(); 115 } 116 }); 117 } 118 }] 119 }); 120 121 var win = new Ext.Window({ 122 layout:'fit', 123 modal: true, 124 width:300, 125 height:150, 126 closable: false, 127 resizable: false, 128 plain: true, 129 border: false, 130 items: [login] 131 }); 132 win.show(); 133 }); 134</SCRIPT>
134 135 136 137 138 139</HEAD> 140 141<BODY> 142 143 <div style="float: left; padding-left: 25; padding-top: 25; width:300px;"> 144 <img width="400" src="/site_media/images/logo_sivd.jpg"/> 145 </div> 146 147</BODY> 148 149</HTML>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.