Browse Source

mehrere Boxen mit jeweils eigenem Header pro Gruppe

master
Georg Hopp 18 years ago
parent
commit
18ed0a21d0
  1. 3
      css/background-colors.css
  2. 7
      css/displays.css
  3. 8
      css/fonts.css
  4. 26
      js/personAdmin/person.js
  5. 6
      js/personAdmin/personInUp.js
  6. 29
      templates/personAdmin/personInUp.tpl.php
  7. 2
      templates/personAdmin/personSearch1.tpl.php

3
css/background-colors.css

@ -10,7 +10,8 @@
* ======================================================================= */ * ======================================================================= */
.bgc-grp1 { background-color: #aaaaaa } .bgc-grp1 { background-color: #aaaaaa }
.bgc-box1 { background-color: #ffb400 } .bgc-box1 { background-color: #ffb400 }
.bgc-head1 { background-color: #e5a200 }
.bgc-grp-head1 { background-color: #e5a200 }
.bgc-box-head1 { background-color: #ffc434 }
/* ======================================================================= */ /* ======================================================================= */
/* ======================================================================= /* =======================================================================

7
css/displays.css

@ -20,11 +20,16 @@
margin-top: 1px; margin-top: 1px;
margin-bottom: 1px margin-bottom: 1px
} }
.d-head1 {
.d-grp-head1 {
padding: 3px; padding: 3px;
margin-top: 1px; margin-top: 1px;
margin-bottom: 1px margin-bottom: 1px
} }
.d-box-head1 {
padding: 3px;
margin-top: 1px;
margin-bottom: 3px
}
/* ======================================================================= */ /* ======================================================================= */
/* ======================================================================= /* =======================================================================

8
css/fonts.css

@ -19,12 +19,18 @@
font-weight: normal; font-weight: normal;
color: #000000 color: #000000
} }
.f-head1 {
.f-grp-head1 {
font-family: verdana, sans-serif; font-family: verdana, sans-serif;
font-size: 10pt; font-size: 10pt;
font-weight: bold; font-weight: bold;
color: #000000 color: #000000
} }
.f-box-head1 {
font-family: verdana, sans-serif;
font-size: 10pt;
font-weight: normal;
color: #000000
}
/* ======================================================================= */ /* ======================================================================= */
/* ======================================================================= /* =======================================================================

26
js/personAdmin/person.js

@ -1,19 +1,19 @@
function c_person (personId, photographerId, ownerId, firstname, surname, function c_person (personId, photographerId, ownerId, firstname, surname,
company, email, url, cameraId, wmWidth, wmHeight, wmXPos, wmYPos) company, email, url, cameraId, wmWidth, wmHeight, wmXPos, wmYPos)
{ {
this.personId = personId;
this.photographerId = photographerId;
this.ownerId = ownerId;
this.firstname = firstname;
this.surname = surname;
this.company = company;
this.email = email;
this.url = url;
this.cameraId = cameraId;
this.wmWidth = wmWidth;
this.wmHeight = wmHeight;
this.wmXPos = wmXPos;
this.wmYPos = wmYPos;
this.personId = this._personId = personId;
this.photographerId = this._photographerId = photographerId;
this.ownerId = this._ownerId = ownerId;
this.firstname = this._firstname = firstname;
this.surname = this._surname = surname;
this.company = this._company = company;
this.email = this._company = email;
this.url = this._url = url;
this.cameraId = this._cameraId = cameraId;
this.wmWidth = this._wmWidth = wmWidth;
this.wmHeight = this._wmHeight = wmHeight;
this.wmXPos = this._wmXPos = wmXPos;
this.wmYPos = this._wmYPos = wmYPos;
this.personForm = null; this.personForm = null;

6
js/personAdmin/personInUp.js

@ -77,11 +77,13 @@ function personInUp (
{ {
case 'photographerId': case 'photographerId':
this.un_fold (person[p], this.un_fold (person[p],
document.getElementById ('cameraId').parentNode.parentNode);
document.getElementById (
'cameraId').parentNode.parentNode.parentNode);
break; break;
case 'ownerId': case 'ownerId':
this.un_fold (person[p], this.un_fold (person[p],
document.getElementById ('wmWidth').parentNode.parentNode);
document.getElementById (
'wmWidth').parentNode.parentNode.parentNode);
} }
} }
} }

29
templates/personAdmin/personInUp.tpl.php

@ -59,19 +59,22 @@
</tr></table> </tr></table>
</div> </div>
<div class="bgc-grp1 d-grp1" style="margin-top: 2px"> <div class="bgc-grp1 d-grp1" style="margin-top: 2px">
<div class="bgc-head1 f-head1 d-head1">
<div class="bgc-grp-head1 f-grp-head1 d-grp-head1">
<?=_('personal data')?> <?=_('personal data')?>
</div> </div>
<div>
<div class="bgc-box1 f-box1 d-box1"> <div class="bgc-box1 f-box1 d-box1">
<div> <div>
<input type="hidden" id="personId" value="-1" disabled="true" />
<input type="hidden" id="personId" value="-1"
disabled="true" />
</div> </div>
<div> <div>
<input type="hidden" id="photographerId" value="-1" <input type="hidden" id="photographerId" value="-1"
disabled="true" /> disabled="true" />
</div> </div>
<div> <div>
<input type="hidden" id="ownerId" value="-1" disabled="true" />
<input type="hidden" id="ownerId" value="-1"
disabled="true" />
</div> </div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
@ -105,9 +108,10 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="bgc-grp1 d-grp1" style="margin-top: 2px"> <div class="bgc-grp1 d-grp1" style="margin-top: 2px">
<div class="bgc-head1 f-head1 d-head1" id="_title_camera">
<div class="bgc-grp-head1 f-grp-head1 d-grp-head1" id="_title_camera">
<img style=" <img style="
position: relative; position: relative;
float: right; float: right;
@ -116,7 +120,9 @@
onClick="showHideBlock ('_title_camera')" /> onClick="showHideBlock ('_title_camera')" />
<?=_('photographer')?> <?=_('photographer')?>
</div> </div>
<div class="bgc-box1 f-box1 d-box1" style="display: none">
<div style="display: none">
<div class="bgc-box1 f-box1 d-box1">
<div class="bgc-box-head1 f-box-head1 d-box-head1">camera</div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="cameraId" value="-1" disabled="true" id="cameraId" value="-1" disabled="true"
@ -125,9 +131,11 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="bgc-grp1 d-grp1" style="margin-top: 2px"> <div class="bgc-grp1 d-grp1" style="margin-top: 2px">
<div class="bgc-head1 f-head1 d-head1" id="_title_watermark">
<div class="bgc-grp-head1 f-grp-head1 d-grp-head1"
id="_title_watermark">
<img style=" <img style="
position: relative; position: relative;
float: right; float: right;
@ -136,7 +144,10 @@
onClick="showHideBlock ('_title_watermark')" /> onClick="showHideBlock ('_title_watermark')" />
<?=_('owner')?> <?=_('owner')?>
</div> </div>
<div class="bgc-box1 f-box1 d-box1" style="display: none">
<div style="display: none">
<div class="bgc-box1 f-box1 d-box1">
<div class="bgc-box-head1 f-box-head1 d-box-head1">
watermark</div>
<div> <div>
<input type="text" style="width: 200px" maxlength="255" <input type="text" style="width: 200px" maxlength="255"
id="wmWidth" value="" disabled="true" id="wmWidth" value="" disabled="true"
@ -162,6 +173,10 @@
<?=_('watermark yPos')?> <?=_('watermark yPos')?>
</div> </div>
</div> </div>
<div class="bgc-box1 f-box1 d-box1">
<div class="bgc-box-head1 f-box-head1 d-box-head1">more</div>
</div>
</div>
</div> </div>
</form> </form>
</div> </div>

2
templates/personAdmin/personSearch1.tpl.php

@ -33,7 +33,7 @@
<div class="bgc-bg1 d-bg1"> <div class="bgc-bg1 d-bg1">
<div class="bgc-grp1 d-grp1"> <div class="bgc-grp1 d-grp1">
<form id="personForm" onSubmit="return false"> <form id="personForm" onSubmit="return false">
<div class="bgc-head1 f-head1 d-head1">
<div class="bgc-grp-head1 f-grp-head1 d-grp-head1">
<?=_('search')?> <?=_('search')?>
</div> </div>
<div class="bgc-box1 f-box1 d-box1"> <div class="bgc-box1 f-box1 d-box1">

Loading…
Cancel
Save