rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gogi1000

Pages: 1 2 3
16
HTML & templates / Re: uploading file just from parent location
« on: September 22, 2016, 08:45:16 AM »
sorry my mistake. hidding upload button when user on subfolder location

VFS location folder (user see upload button)
VFS location subfolder (user not see upload button)

i tryed with next code

{.AND|{.get|can upload.}|{.%folder% = /.}|<div class="bigBtn"><a href="~upload" title="{.!lv_uploadTitle.}"><span>{.!lv_upload.}</span></a></div>.}

but upload button is hidden for every location

17
HTML & templates / uploading file just from parent location
« on: September 21, 2016, 07:21:18 AM »
i have a question. how i enable that my users which permission for uploading can uploading just from parent location, not when go to subfolder?
structure of virtual file sistem is

parent folder (can upload)
  subfolder (cannot upload, for example hide upload button)

18
HTML & templates / Re: server-side scripting
« on: August 18, 2016, 10:45:48 AM »
problem is solved. i made encoding text files to ANSI with notepad++ and when i load text file from web browser i receive unicode characters.thanks.

i have one more question about hide upload button. i want hiding of this button when i placed in folder where's files. when i placed on level where're folders i want that show this button.

how?

19
HTML & templates / Re: server-side scripting
« on: August 18, 2016, 05:36:08 AM »
when i changed text file from UNICODE to ANSI all is ok. there's option for unicode format of text file?

20
HTML & templates / Re: server-side scripting
« on: August 17, 2016, 09:50:10 AM »
when i start debugger in firefox and i click on list i receive data from text file like on picture but i cannot see them in browser. where is problem?

21
HTML & templates / Re: server-side scripting
« on: August 17, 2016, 06:08:53 AM »
again problem. this code works in internet explorer and chrome but not works in firefox.

{.if|{.member of|budzet.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-budzet.txt");
   });</script>:}|
{.if|{.member of|lokal.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-lokal.txt");
 
});</script>:}|{.if|{.member of|ooso.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-ooso.txt");
 
});</script>:}|{.if|{.member of|JAVNA.}|
  {:<script type="text/javascript">$(document).ready(function(){
   
        $("#lista").load("/template/pitanja-javna_preduzeca.txt");
 
});</script>:}|{.if|{.member of|NBS.}|
  {:<script type="text/javascript">$(document).ready(function(){
 
        $("#lista").load("/template/pitanja-nbs.txt");
   
});</script>:}
/if.}
/if.}
/if.}
/if.}
/if.}

where is problem?

22
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 01:29:07 PM »
i solved problem with this code

{.if|{.member of|budzet.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
});</script>:}|
{.if|{.member of|lokal.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}|{.if|{.member of|ooso.}|
  {:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/if.}
/if.}
/if.}

thank's

23
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 05:58:11 AM »
i set {.switch|{.get account|%user%|member of.}|,| instead {.switch|{.%user%|member of.}|,| but all is same i receive elements of list from text file the pitanja-ooso.txt. any user from any group logged every time i receive from the pitanja-ooso.txt

my code is now

{.switch|{.get account|%user%|member of.}|,|
  #budzet#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
}); </script>:}|
   #lokal#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}
 #ooso#|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/switch.}

24
HTML & templates / Re: server-side scripting
« on: August 05, 2016, 04:49:28 AM »
{.switch|{.%user%|member of.}|,|  --->> {.switch|{.get account|%user%|member of.}|,|

where is error? how i correct them?

25
HTML & templates / Re: server-side scripting
« on: August 04, 2016, 10:14:51 AM »
i tryed with next code

   {.switch|{.%user%|member of.}|,|
  budzet|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
}); </script>:}|
   lokal|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});</script>:}
 ooso|{:<script type="text/javascript">$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});</script>:}
/switch.}

but nothing

26
HTML & templates / Re: server-side scripting
« on: August 04, 2016, 07:27:01 AM »
i try with next code

<script type="text/javascript">
      var theme="{.!theme.}";
      var mod_statistics="{.!mod_statistics.}";
      //Language Strings
      var lv_hideTitle="{.!lv_hideTitle.}";
      var lv_showTitle="{.!lv_showTitle.}";
      
   
   
   function change(obj) {


    var selectBox = obj;
    var selected = selectBox.options[selectBox.selectedIndex].value;
    var textarea = document.getElementById("skriveno");

    if(selected != '0'){
       
      document.getElementById("skriveno").disabled = false;
    }
   
}
  {.if|{.get account|%user%|member of|#budzet#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-budzet.txt");
    });
});
/if.}
 {.if|{.get account|%user%|member of|#lokal#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-lokal.txt");
    });
});
/if.}
{.if|{.get account|%user%|member of|#ooso#.}|
  $(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-ooso.txt");
    });
});
/if.}
   </script>

but i receive elements of list from text file the pitanja-ooso.txt. any user logged every time i receive from the pitanja-ooso.txt

27
HTML & templates / Re: server-side scripting
« on: August 04, 2016, 06:33:15 AM »
i solved problem with code
<script type="text/javascript">
$(document).ready(function(){
    $("select").ready(function(){
        $("#lista").load("http://localhost/template/pitanja-b.txt");
    });
});
   </script>

<select id="lista"   >
           
         </select>

but how i resolve that if is user memeber of group for example the budzet, he load file pitanja-b.txt, but if he is memeber of group the lokal, he load file the pitanja-l.txt?

thanks

28
HTML & templates / server-side scripting
« on: August 03, 2016, 10:03:21 AM »
i have a question. is template the Rawr Template Modules Mod v.0.1.3.m.1.5 or hfs http server have support for server side scripting. i want that my listbox on page get values from external file. if YES, can you give me some instruction?

thank's

29
i solved problem with format time but i cannot solve a problem:

when i upload the first file i receive picture attached with name first.jpg, but when i back on upload second file i receive picture attached with name second.jpg. in hfs.comment.txt i receive duplicate the write like

text.txt=text.txt; /test/statut; 22/07/2016;14:57:29; test
text.txt=text.txt=text.txt=text.txt; /test/bilans stanja; 22/07/2016;14:58:46; test
text1.xlsx=text1.xlsx; /test/bilans stanja; 22/07/2016;14:58:46; test


my code in diff template is

[upload-success]
{.inc|ok.}
<br/>
{.set|movedto|{.postvar|{.postvar|metodologija.}.}/set.}
{.switch|{.postvar|metodologija.}|,|
  1,2,3,4|{:{.mkdir|{.filepath|%item-resource%.}\{.^movedto.}\.}{.move|%item-resource%|%folder%{.^movedto.}/.} <p>Uspesno ste prebacili fajl. Fajl je premesten na lokaciju %folder%{.^movedto.}/ :}|
   0|{:<p>no move has been performed with this action selected:}| {:{.delete|%item-resource%.}<p>Niste izabrali tip dokumenta:}
/switch.}

{.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}={.filename|%item-resource%.}; %folder%{.^movedto.}; {.time|%item-resource%|format=dd/mm/yyyy;hh:nn:ss.}; %user%
/append.}

30
how show time near date in format dd/mm/yyyy hh/mm?
i have a situation the first write is ok, but if i want upload one fileafter the previous entry  in hfs.comment.txt  i have two the write the previous and the second. how i disable this situation

Pages: 1 2 3