561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
|
blob_reset(&content);
db_end_transaction(0);
CX("<div>Added: %h</div>", zName);
}
form_begin("enctype='multipart/form-data'", "%R/uvlist");
@ <label for='uvupload'>Upload unversioned file:</label>
@ <input type='file' id='uvupload' name='f'/>
@ <input type='submit' id='uvsubmit' value='Upload'/>
@ </form>
@ <script nonce='%h(style_nonce())'>;/* unversioned.c:%d(__LINE__) */
@ document.getElementById('uvsubmit').onclick = function(){
@ var bNofile = !document.getElementById('uvupload').value;
@ if (bNofile) alert('Please select a file');
@ return !bNofile;
@ }
@ </script>
}
/*
** WEBPAGE: uvlist
**
|
|
|
|
>
|
|
|
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
|
blob_reset(&content);
db_end_transaction(0);
CX("<div>Added: %h</div>", zName);
}
form_begin("enctype='multipart/form-data'", "%R/uvlist");
@ <label for='uvupload'>Upload unversioned file:</label>
@ <input type='file' id='uvupload' name='f'/>
@ <input type='submit' id='uvsubmit' value='Upload' disabled='disabled'/>
@ </form>
@ <script nonce='%h(style_nonce())'>;/* unversioned.c:%d(__LINE__) */
@ var upl = document.getElementById('uvupload');
@ var sbm = document.getElementById('uvsubmit');
@ upl.onchange = function(){
@ if (!upl.value) sbm.setAttribute('disabled', 'disabled');
@ else sbm.removeAttribute('disabled');
@ }
@ </script>
}
/*
** WEBPAGE: uvlist
**
|