This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,86 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Dodaj użytkownika:</a></h2></div>
<div class="panelContentBody">
<form action="{url User=Add}" method="post">
<br />
<table class="maintable" >
<tr>
<td align="right" width="100"><b>Login*:</b></td>
<td><input class="input avf" type="text" name="login" value="{if isset($user)}{$user.login}{/if}" />
{if isset($error.login)}<div style="color: red;" id="actionError">{$error.login}</div>{/if}
</td>
</tr>
<tr>
<td align="right"><b>Hasło*:</b></td>
<td><input class="input avf" type="password" name="password" />
{if isset($error.password)}<div style="color: red;" id="actionError">{$error.password}</div>{/if}
</td>
</tr>
<tr>
<td align="right"><b>Powtórz hasło*:</b></td><td><input class="input" type="password" name="passwordconf" />
{if isset($error.passwordconf)}<div style="color: red;" id="actionError">{$error.passwordconf}</div>{/if}
{if isset($error.passwordconfDif)}<div style="color: red;" id="actionError">{$error.passwordconfDif}</div>{/if}
</td>
</tr>
<tr>
<td align="right"><b>Imię*</b></td><td><input class="input" type="text" name="firstName" value="{if isset($user)}{$user.firstName}{/if}" />
{if isset($error.firstName)}<div style="color: red;" id="actionError">{$error.firstName}</div>{/if}
</td>
</tr>
<tr>
<td align="right"><b>Nazwisko*</b></td><td><input class="input" type="text" name="lastName" value="{if isset($user)}{$user.lastName}{/if}" />
{if isset($error.lastName)}<div style="color: red;" id="actionError">{$error.lastName}</div>{/if}
</td>
</tr>
<tr>
<td align="right"><b>Email*:</b></td><td><input class="input" type="text" name="email" value="{if isset($user)}{$user.email}{/if}" />
{if isset($error.email)}<div style="color: red;" id="actionError">{$error.email}</div>{/if}
</td>
</tr>
<tr>
<td align="right" valign="top"><b>Opis:</b></td><td><textarea class="input" name="description" >{if isset($user)}{$user.description}{/if}</textarea></td>
</tr>
<tr>
<td align="right"><b>Rola*:</b></td><td>
<select class="input" style="width: 100px;" name="role">
{foreach item=role from=$userRole}
<option value="{$role.role}" {if isset($user) && $role.role == $user.role}selected{/if} >{$role.role}</option>
{/foreach}
</select>
{if isset($error.role)}<div style="color: red;" id="actionError">{$error.role}</div>{/if}
</td>
</tr>
<tr>
<td></td><td></td>
</tr>
</table>
<div id="messages"></div>
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url User=index}';"/>
<input type="submit" name="AddUser" value="Dodaj" />
{*
<form method="post" action="">
<input type="submit" class="button buttonAnuluj" value="" name=""/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button buttonPodglad" value="" name=""/>
<input type="submit" class="button buttonZapisz" value="" name=""/>
<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
</form>
*}
</div>
</div>
</form>

View File

@@ -0,0 +1 @@
alert('test');

View File

@@ -0,0 +1 @@
{literal}{{/literal}'info':'<span class="green">Twoje zdjęcie zostało poprawnie dodatne.</span>', 'user':true, 'group':false, 'article':false, 'feed':false, 'photoPath' : '{$photoPath}' {literal}}{/literal}

View File

@@ -0,0 +1,6 @@
<div class="popover" id="photoCropperPopover">
<h1>Dopracuj zdjęcie</h1>
{insertPhotoCropper prefix="photoCropper" photoSrc="puste" preview=true loadOnFly=true onInit=true }
<div class="clear"></div>
</div>

View File

@@ -0,0 +1,13 @@
<html>
<head></head>
<body>
<script language="javascript" type="text/javascript">
{if isset($error)}
window.top.window.failedUpload('file', {literal}{{/literal}'error' : '{$error}'{literal}}{/literal});
{else}
window.top.window.finishUpload('{$page2load}', {literal}{{/literal}photoPath : '{$photoFile}', photoWidth : '{$photoWidth}', photoHeight : '{$photoHeight}', prefix : '{$cropPrefix}', onFly : {$onFly} {literal}}{/literal});
{/if}
</script>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Edycja użytkownika: {$userData->GetLogin()}</a></h2></div>
<div class="panelContentBody">
<form action="{url User=Edit id=$userData->GetId()}" method="post">
<input class="input" type="hidden" name="id" value="{$userData->GetId()}"/>
<input class="input" type="hidden" name="login" value="{$userData->GetLogin()}" />
<br />
<table class="maintable" cellpadding="0" cellspacing="0" >
<tr><td class="header" colspan="2">Logowanie</td></tr>
<tr>
<td width="120">Login*: </td>
<td> {$userData->GetLogin()}</td>
</tr>
<tr>
<td>Hasło*: </td>
<td>
<input name="disable-pwd-mgr-1" type="password" id="disable-pwd-mgr-1" style="display: none;" value="disable-pwd-mgr-1" />
<input name="disable-pwd-mgr-2" type="password" id="disable-pwd-mgr-2" style="display: none;" value="disable-pwd-mgr-2" />
<input name="disable-pwd-mgr-3" type="password" id="disable-pwd-mgr-3" style="display: none;" value="disable-pwd-mgr-3" />
<input class="input" type="password" name="password" autocomplete="off" />
{if isset($error.password)}<div style="color: red;" id="actionError">{$error.password}</div>{/if}
</td>
</tr>
<tr>
<td>Powtórz hasło*: </td><td><input class="input" type="password" name="passwordconf" />
{if isset($error.passwordconf)}<div style="color: red;" id="actionError">{$error.passwordconf}</div>{/if}
{if isset($error.passwordconfDif)}<div style="color: red;" id="actionError">{$error.passwordconfDif}</div>{/if}
</td>
</tr>
<tr><td class="header" colspan="2">Dane osobowe</td></tr>
<tr>
<td>Imię*</td><td><input class="input" type="text" name="firstName" value="{$userData->GetFirstName()}" /></td>
</tr>
<tr>
<td>Nazwisko*</td><td><input class="input" type="text" name="lastName" value="{$userData->GetLastName()}" /></td>
</tr>
<tr>
<td>Email*: </td><td><input class="input" type="text" name="email" value="{$userData->GetEmail()}" /></td>
</tr>
<tr>
<td>Opis: </td><td><textarea class="input" name="description" >{$userData->GetDescription()}</textarea></td>
</tr>
<tr><td class="header" colspan="2">Uprawnienia</td></tr>
<tr>
<td>Rola: </td><td>
<select class="input" style="width: 100px;" name="role">
{foreach item=role from=$userRole}
<option value="{$role.role}" {if $role.role==$userData->GetRole()}selected="selected"{/if}>{$role.role}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td></td><td></td>
</tr>
</table>
<div id="messages"></div>
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
<input type="button" class="cancel" value="Anuluj" name="" onclick="document.location.href='{url User=index}';"/>
<input type="submit" name="userEdit" value="Zapisz" />
</div>
</div>
</form>

View File

@@ -0,0 +1,54 @@
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
{dropDownContainer isClose=true isHidden=true title="Wyszukiwarka"}
<form method="post" action="">
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="frameTableForm tableContetntWhite">
<tbody>
<tr>
<td>Szukana Fraza:</td>
<td class="left"><input class="input420" type="text" class="searchString" /></td>
</tr>
<tr>
<td colspan="2" class="right">
<input class="button" type="submit" value="Wyszukaj"/> <input class="button" name="clear" type="submit" value="Wyczyść" />
</td>
</tr>
</tbody>
</table>
</form>
{/dropDownContainer}
{dropDownContainer title="Słownik"}
<table class="datagrid" cellpadding="4" cellspacing="1" border="0">
<thead>
<tr >
<th align="left">Login</th>
<th>Nazwisko</th>
<th>email</th>
<th>Rola</th>
<th>Ostatnio zalogowany</th>
<th class="light" style="width: 40px; text-align: center;"><a class="optionIcon iconAdd" title="Dodaj" href="{url User=add}">&nbsp;</a></th>
</tr>
</thead>
<tbody>
{foreach from=$userList item=item key=j name=main_items}
<tr {if $j is even}class="even"{/if}>
<td>
<b>{$item->GetLogin()}</b></td>
<td align="center"> {$item->GetName()} </td>
<td align="center"> {$item->GetEmail()} </td>
<td align="center"> {$item->GetRole()} </td>
<td align="center"> {$item->GetLastLogin()} </td>
<td align="center"> <a class="editItemTable" href="{url User=edit id=$item->GetId()}">edycja</a>
<a class="deleteItemTable" href="{url user=delete id=$item->GetId() ok=1}" onclick="{literal}if(confirm('Czy napewno usunąć tego użytkownika?')){return true;}else{return false;}{/literal}">usuń</a> </td>
</tr>
{/foreach}
</tbody>
</table>
{/dropDownContainer}
</div><!-- /paddedContent -->
</div><!-- /panelRightBody -->
<div class="panelRightBottom"></div>

View File

@@ -0,0 +1,43 @@
<div class="header">Przepisywanie</div>
<br />
<form action="{url user=AjaxJoin type=$type}" method="post" id="userJoin" class="avfo">
{foreach from=$ids item=id}
<input type="hidden" name="{$type}[]" value="{$id}">
{/foreach}
<table class="adminTable" cellpadding="2" cellspacing="2" style="width: 600px;" align="center">
<thead>
<tr>
<th></th>
<th width="20">lp.</th>
<th>{tableSort field=login title='Login'}</th>
<th>{tableSort field=email title='email'}</th>
<th>{tableSort field=role title='Rola'}</th>
<th>{tableSort field=last_login title='Ostatnio zalogowany'}</th>
<th class="light"><a href="{url _value=user,add}">dodaj</a></th>
</tr>
</thead>
<tbody>
{assign var=x value=1}
{foreach item=userObj from=$UserList}
{assign var=userId value=$userObj->getId()}
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
<td> <input type="checkbox" name="admin[]" value="{$userObj->getId()}"> </td>
<td align="right"> {$userObj->GetId()} </td>
<td> {$userObj->getLogin()} </td>
<td align="center"> {$userObj->GetEmail()} </td>
<td align="center"> {$userObj->GetRole()} </td>
<td align="center"> {$userObj->GetLastLogin()} </td>
<td align="center"> <a href="{url _value=user,edit,id,$userId}">edycja</a> | <a href="{url _value=user,delete,id,$userId}" onclick="{literal}if(confirm('Czy napewno usunąć tego użytkownika?')){return true;}else{return false;}{/literal}">usuń</a></td>
</tr>
{/foreach}
<tr>
<td colspan="7">
<input type="submit" value="zaznacz wszytkie" onclick="{literal}$$('input').each(function(e){ if(e.type == 'checkbox') e.checked = 1; });return false;{/literal}"> <input type="submit" value="edytuj"> <input type="submit" value="przypisz"> <input type="submit" value="moderuj">
</td>
</tr>
</tbody>
</table>
</form>

View File

@@ -0,0 +1,35 @@
<div class="header">Zmiana has³a</div>
<br />
<form action="{url value=user,changePassword}" method="post">
<table class="adminTable" cellpadding="2" cellspacing="2" style="width:50%;" align="center">
<tr>
<td>Stare has³o: </td>
<td>
<input class="input" type="password" name="oldPassword" id="oldPassword" />
</td>
</tr>
<tr>
<td>Nowe has³o: </td>
<td>
{literal}
<input class="input" type="password" id="pass1" name="newPassword" onkeyup="this.style.backgroundImage='none'; if(this.value.length<=4){this.style.backgroundColor='#ff7e7e';}else if(this.value.length>4 && this.value.length<7){this.style.backgroundColor='#fffe8f';}else{this.style.backgroundColor='#4fff57';}" />
</td>
</tr>
<tr>
<td>Powtórz nowe has³o: </td>
<td>
<input class="input" type="password" id="pass2" name="confirmPassword" onkeyup="this.style.backgroundImage='none'; var tmpVal=$('pass1'); if(this.value==tmpVal.value){this.style.backgroundColor='#4fff57'; if(tmpVal.value.length>4){tmpVal.style.backgroundColor='#4fff57';}}else{this.style.backgroundColor='#ff7e7e';}" />
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Zapisz" class="button" onclick="if($('oldPassword').value!='' && $('pass1').value==$('pass2').value && $('pass1').value.length>4){return true;} else if($('oldPassword').value==''){$('oldPassword').style.backgroundImage='none'; $('oldPassword').style.backgroundColor='#ff7e7e'; return false;} else if($('oldPassword').value==''){$('oldPassword').style.backgroundImage='none'; $('oldPassword').style.backgroundColor='#ff7e7e'; return false;} else {return false;}" /></td>
</tr>
<tr>
<td></td>
{/literal}
<td>{$msg}</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,13 @@
{assign var=profileUrl2 value=$invited->GetPubProfileUrl()}
<div class="commonBox4Thread">
<div class="photoBlueBorder"><a href="{url profil=$profileUrl2}"><img src="{$invited->GetPhotoWithUrl()}" width="70" height="70" alt="{$invited->GetName()} {$invited->GetSurname()}" title="{$invited->GetName()} {$invited->GetSurname()}" border="0" /></a></div>
<div class="clearBoth"></div>
<br/>
<a href="{url profil=$profileUrl2}"><b>{$invited->GetName()} {$invited->GetSurname()}</b></a><br />
{ $invited->getSpiecialtyText() }
<br />
{$invited->GetCity()}
</div>

View File

@@ -0,0 +1,13 @@
{assign var=profileUrl2 value=$invited->GetLogin()}
{if !isset($clickable)}{assign var=clickable value=true}{/if}
<div class="commonBox">
<div class="photoBlueBorder">{if $clickable}<a href="{url profil=$profileUrl2}"><img src="{$urlStatic}/images/upload/Avatar/{$invited->GetPhotoUrl()}" width="50" height="50" alt="{$invited->GetName()} {$invited->GetLogin()}" title="{$invited->GetName()} {$invited->GetLogin()}" border="0" /></a>{else}<img src="{$urlStatic}/images/upload/Avatar/{$invited->GetPhotoUrl()}" width="50" height="50" alt="{$invited->GetName()} {$invited->GetLogin()}" title="{$invited->GetName()} {$invited->GetLogin()}" border="0" />{/if}</div>
<div class="commonBoxText">
{if $clickable}<a href="{url profil=$profileUrl2}"><b>{$invited->GetName()} {$invited->GetLogin()}</b></a>{else}<b>{$invited->GetName()} {$invited->GetLogin()}</b>{/if}<br />
<br />
{$invited->GetRole()}
</div>
<div class="clearBoth"></div>
</div>

View File

@@ -0,0 +1,13 @@
{assign var=profileUrl2 value=$invited->GetPubProfileUrl()}
<div class="commonBox">
<div class="photoBlueBorder"><a href="{url profil=$profileUrl2}"><img src="{$invited->GetPhotoWithUrl50()}" width="50" height="50" alt="{$invited->GetName()} {$invited->GetSurname()}" title="{$invited->GetName()} {$invited->GetSurname()}" border="0" /></a></div>
<div class="commonBoxText200">
<a href="{url profil=$profileUrl2}"><b>{$invited->GetName()} {$invited->GetSurname()}</b></a><br />
{ $invited->getSpiecialtyText() }
<br />
{$invited->GetCity()}
</div>
<div class="clearBoth"></div>
</div>

View File

@@ -0,0 +1,11 @@
{assign var=profileUrl2 value=$invited->GetPubProfileUrl()}
{if !isset($clickable)}{assign var=clickable value=true}{/if}
<div class="commonBox">
<div class="photoBlueBorder">{if $clickable}<a href="{url profil=$profileUrl2}"><img src="{$invited->GetPhotoWithUrl50()}" width="50" height="50" alt="{$invited->GetName()} {$invited->GetSurname()}" title="{$invited->GetName()} {$invited->GetSurname()}" border="0" /></a>{else}<img src="{$invited->GetPhotoWithUrl50()}" width="50" height="50" alt="{$invited->GetName()} {$invited->GetSurname()}" title="{$invited->GetName()} {$invited->GetSurname()}" border="0" />{/if}</div>
<div class="commonBoxText">
{if $clickable}<a href="{url profil=$profileUrl2}"><b>{$invited->GetName()} {$invited->GetSurname()}</b></a>{else}<b>{$invited->GetName()} {$invited->GetSurname()}</b>{/if}<br />
</div>
<div class="clearBoth"></div>
</div>