123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- @Title{Projects}@
- @JavaScript{
- function HideUploadFields(){
- $("#fileDiv").hide();
- $("#linkDiv").hide();
- }
- $(function(){
- HideUploadFields();
- $("input[name=type]").change(function(e){
- var value=$(this).val();
- HideUploadFields();
- $("#"+value+"Div").show();
- });
- });
- }@
- @ButtonsRight{
- <button name="submitProject" value="yes" type="submit" form="projectForm">
- +
- </button>
- }@
- @Body{
- <h3>Title</h3>
- <form action="" method="post" id="projectForm">
- <input name="title" style="width:100%" value="<?=$project->ProjectTitle?>" />
- <h3>Description</h3>
- <textarea name="description" style="width:100%"><?=$project->ProjectDescription?></textarea>
- <h3>Logo/Icon</h3>
- <label for="icon">File: </label><input type="file" name="icon" id="icon" />
- <h3>Screenshots</h3>
- <label for="screenshot">File: </label><input type="file" name="screenshot" id="screenshot" />
- <h3>Project Type</h3>
- <input type="radio" name="type" id="typeDownload" value="file" /><label for="typeDownload">Download</label>
- <br/>
- <input type="radio" name="type" id="typeLink" value="link" /><label for="typeLink">Link</label>
- <div id="linkDiv">
- <label for="link">Link: </label>
- <input name="link" id="link"/>
- </div>
- <div id="fileDiv">
- <label for="file">File: </label>
- <input type="file" name="file" id="file" />
- </div>
- </form>
- }@
|