[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_tmpl/content/ -> cnt9.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  // ----------------------------------------------------------------
  24  // obligate check for phpwcms constants
  25  if (!defined('PHPWCMS_ROOT')) {
  26     die("You Cannot Access This Script Directly, Have a Nice Day.");
  27  }
  28  // ----------------------------------------------------------------
  29  
  30  
  31  //multimedia
  32  
  33  if(!isset($content["media_type"])) {
  34      $content["media_type"] = 0;
  35  }
  36  if(!isset($content["media_player"])) {
  37      $content["media_player"] = 0;
  38  }
  39  if(!isset($content["media_auto"])) {
  40      $content["media_auto"] = 0;
  41  }
  42  if(!isset($content["media_transparent"])) {
  43      $content["media_transparent"] = 0;
  44  }
  45  if(!isset($content["media_src"])) {
  46      $content["media_src"] = 0;
  47  }
  48  if(!isset($content["media_pos"])) {
  49       $content["media_pos"] = 0;
  50  }
  51  if(empty($content["image_name"])) {
  52      $content["image_name"] = '';
  53  }
  54  if(empty($content["image_id"])) {
  55      $content["image_id"] = '';
  56  }
  57  if(empty($content["image_caption"])) {
  58      $content["image_caption"] = '';
  59  }
  60  
  61  ?>
  62  
  63  <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  64  
  65  <tr>
  66      <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>:&nbsp;</td>
  67      <td><select name="template" id="template" class="f11b">
  68  <?php
  69      
  70      echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF;
  71  
  72  // templates for frontend login
  73  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/multimedia');
  74  if(is_array($tmpllist) && count($tmpllist)) {
  75      foreach($tmpllist as $val) {
  76          $selected_val = (isset($content["template"]) && $val == $content["template"]) ? ' selected="selected"' : '';
  77          $val = html_specialchars($val);
  78          echo '    <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF;
  79      }
  80  }
  81  
  82  ?>                  
  83      </select></td>
  84  </tr>
  85  
  86  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  87  
  88  
  89  
  90  <tr>
  91      <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" summary="">
  92          <tr>
  93            <td align="right" class="chatlist"><?php echo $BL['be_cnt_mediatype']  ?>:&nbsp;</td>
  94            <td bgcolor="#E7E8EB"><input name="cmedia_type" type="radio" value="0" <?php is_checked(0, $content["media_type"]); ?> onchange="if(cmedia_player[3].checked) cmedia_player[0].click();" /></td>
  95            <td bgcolor="#E7E8EB" class="v10">Video</td>
  96            <td bgcolor="#E7E8EB"><input name="cmedia_type" type="radio" value="1" <?php is_checked(1, $content["media_type"]); ?> onchange="if(cmedia_player[3].checked) cmedia_player[0].click();" /></td>
  97            <td bgcolor="#E7E8EB" class="v10">Audio</td>
  98            <td bgcolor="#E7E8EB"><input name="cmedia_type" type="radio" value="2" <?php is_checked(2, $content["media_type"]); ?> onchange="cmedia_player[3].click();" /></td>
  99            <td bgcolor="#E7E8EB" class="v10">Flash</td>
 100            <td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
 101            </tr>
 102          <tr>
 103            <td><img src="img/leer.gif" alt="" width="80" height="1" /></td>
 104            <td colspan="8"><img src="img/leer.gif" alt="" width="1" height="3" /></td>
 105            </tr>
 106          <tr>
 107            <td align="right" class="chatlist">&nbsp;</td>
 108            <td bgcolor="#E7E8EB"><input name="cmedia_player" type="radio" value="0" <?php is_checked(0, $content["media_player"]); ?> onchange="if(cmedia_type[2].checked) cmedia_type[0].click();" /></td>
 109            <td bgcolor="#E7E8EB" class="v10">Quicktime&nbsp;</td>
 110            <td bgcolor="#E7E8EB"><input name="cmedia_player" type="radio" value="1" <?php is_checked(1, $content["media_player"]); ?> onchange="if(cmedia_type[2].checked) cmedia_type[0].click();" /></td>
 111            <td bgcolor="#E7E8EB" class="v10">RealPlayer&nbsp;</td>
 112            <td bgcolor="#E7E8EB"><input name="cmedia_player" type="radio" value="2" <?php is_checked(2, $content["media_player"]); ?> onchange="if(cmedia_type[2].checked) cmedia_type[0].click();" /></td>
 113            <td bgcolor="#E7E8EB" class="v10">MediaPlayer&nbsp;</td>
 114            <td bgcolor="#E7E8EB"><input name="cmedia_player" type="radio" value="3" <?php is_checked(3, $content["media_player"]); ?> onchange="cmedia_type[2].click();" /></td>
 115            <td bgcolor="#E7E8EB" class="v10">Flash&nbsp;Plugin&nbsp;&nbsp;</td>
 116            </tr>
 117         <tr><td colspan="9"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 118          <tr>
 119            <td align="right" class="chatlist"><?php echo $BL['be_cnt_control']  ?>:&nbsp;</td>
 120            <td bgcolor="#E7E8EB"><input name="cmedia_control" type="checkbox" id="cmedia_control" value="1" <?php is_checked(1, $content["media_control"]); ?> /></td>
 121            <td colspan="3" bgcolor="#E7E8EB" class="v10"><?php echo $BL['be_cnt_showcontrol'] ?></td>
 122            <td bgcolor="#E7E8EB"><input name="cmedia_auto" type="checkbox" id="cmedia_auto" value="1" <?php is_checked(1, $content["media_auto"]); ?> /></td>
 123            <td bgcolor="#E7E8EB" class="v10"><?php echo $BL['be_cnt_autoplay'] ?></td>
 124            <td bgcolor="#E7E8EB"><input name="cmedia_transparent" type="checkbox" id="cmedia_transparent" value="1" <?php is_checked(1, $content["media_transparent"]); ?> /></td>
 125            <td bgcolor="#E7E8EB" class="v10"><?php echo $BL['be_cnt_transparent'] ?>&nbsp;&nbsp;</td>
 126            </tr>
 127          </table>
 128      </td>
 129      </tr>
 130  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 131  <tr>
 132    <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" summary="">
 133      <tr>
 134        <td align="right" class="chatlist"><?php echo $BL['be_cnt_source'] ?>:&nbsp;</td>
 135        <td bgcolor="#E7E8EB"><input name="cmedia_src" type="radio" value="0" <?php is_checked(0, $content["media_src"]); ?> /></td>
 136        <td bgcolor="#E7E8EB" class="v10"><?php echo $BL['be_cnt_internal'] ?>&nbsp;&nbsp;</td>
 137        <td><img src="img/leer.gif" alt="" width="6" height="1" /></td>
 138        <td><input name="cmedia_name" type="text" id="cmedia_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo  isset($content["media_name"]) ? html_specialchars($content["media_name"]) : '' ?>" size="40" onfocus="this.blur()" /></td>
 139                                                                                                                                                   
 140        <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_openmediabrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=2&amp;target=nolist','imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1)"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 141        <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_delmedia'] ?>" onclick="document.articlecontent.cmedia_name.value='';document.articlecontent.cmedia_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a></td>
 142        <td><input name="cmedia_id" type="hidden" id="cmedia_id2" value="<?php echo  isset($content["media_id"]) ? $content["media_id"] : '' ?>" /></td>
 143      </tr>
 144      <tr>
 145        <td><img src="img/leer.gif" alt="" width="80" height="1" /></td>
 146        <td colspan="7"><img src="img/leer.gif" alt="" width="1" height="3" /></td>
 147      </tr>
 148      <tr>
 149        <td align="right" class="chatlist">&nbsp;</td>
 150        <td bgcolor="#E7E8EB"><input name="cmedia_src" type="radio" value="1" <?php is_checked(1, $content["media_src"]); ?> /></td>
 151        <td bgcolor="#E7E8EB" class="v10"><?php echo $BL['be_cnt_external'] ?>&nbsp;&nbsp;</td>
 152        <td><img src="img/leer.gif" alt="" width="6" height="1" /></td>
 153        <td colspan="4"><input name="cmedia_extern" type="text" id="cmedia_extern" class="f11b" style="width: 300px; color: #727889;" value="<?php echo  isset($content["media_extern"]) ? html_specialchars($content["media_extern"]) : '' ?>" size="40" /></td>
 154        </tr>
 155    </table></td>
 156    </tr>
 157    <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 158              <tr>
 159                <td align="right" class="chatlist"><?php echo $BL['be_cnt_position'] ?>:&nbsp;</td>
 160                <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 161                  <tr>
 162                    <td><select name="cimage_pos" class="f10" id="cimage_pos" onchange="changeImagePosMenu();">
 163                  <option value="0" <?php is_selected(0, $content["media_pos"]) ?>><?php echo $BL['be_cnt_mediapos0'] ?></option>
 164                  <option value="1" <?php is_selected(1, $content["media_pos"]) ?>><?php echo $BL['be_cnt_mediapos1'] ?></option>
 165                  <option value="2" <?php is_selected(2, $content["media_pos"]) ?>><?php echo $BL['be_cnt_mediapos2'] ?></option>
 166                  <option value="3" <?php is_selected(3, $content["media_pos"]) ?>><?php echo $BL['be_cnt_mediapos3'] ?></option>
 167                  <option value="4" <?php is_selected(4, $content["media_pos"]) ?>><?php echo $BL['be_cnt_mediapos4'] ?></option>
 168                </select></td>
 169                    <td><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 170                    <td><img src="img/symbole/content_selected.gif" alt="" name="imgpos0" width="7" height="10" id="imgpos0" /></td>
 171                    <td><a href="javascript:;" onclick="changeImagePos(0);this.blur();return false;" title="<?php echo $BL['be_cnt_mediapos0i'] ?>"><img src="img/button/image_pos0.gif" alt="" width="15" height="15" border="0" /></a></td>
 172                    <td><img src="img/leer.gif" alt="" name="imgpos1" width="7" height="10" id="imgpos1" /></td>
 173                    <td><a href="javascript:;" onclick="changeImagePos(1);this.blur();return false;" title="<?php echo $BL['be_cnt_mediapos1i'] ?>"><img src="img/button/image_pos1.gif" alt="" width="15" height="15" border="0" /></a></td>
 174                    <td><img src="img/leer.gif" alt="" name="imgpos2" width="7" height="10" id="imgpos2" /></td>
 175                    <td><a href="javascript:;" onclick="changeImagePos(2);this.blur();return false;" title="<?php echo $BL['be_cnt_mediapos2i'] ?>"><img src="img/button/image_pos2.gif" alt="" width="15" height="15" border="0" /></a></td>
 176                    <td><img src="img/leer.gif" alt="" name="imgpos3" width="7" height="10" id="imgpos3" /></td>
 177                    <td><a href="javascript:;" onclick="changeImagePos(3);this.blur();return false;" title="<?php echo $BL['be_cnt_mediapos3i'] ?>"><img src="img/button/image_pos6.gif" alt="" width="15" height="15" border="0" /></a></td>
 178                    <td><img src="img/leer.gif" alt="" name="imgpos4" width="7" height="10" id="imgpos4" /></td>
 179                    <td><a href="javascript:;" onclick="changeImagePos(4);this.blur();return false;" title="<?php echo $BL['be_cnt_mediapos4i'] ?>"><img src="img/button/image_pos7.gif" alt="" width="15" height="15" border="0" /></a></td>
 180                  </tr>
 181                </table></td>
 182                </tr>
 183              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 184              <tr>
 185                <td align="right" class="chatlist"><?php echo $BL['be_admin_page_width'] ?>:&nbsp;</td>
 186                <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 187                  <tr>
 188                    <td><input name="cmedia_width" type="text" class="f11b" id="cmedia_width" style="width: 50px;" size="3" maxlength="5" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo  isset($content["media_width"]) ? $content["media_width"] : '' ?>" /></td>
 189                    <td class="chatlist">&nbsp;&nbsp;<?php echo $BL['be_admin_page_height'] ?>:&nbsp;</td>
 190                    <td><input name="cmedia_height" type="text" class="f11b" id="cmedia_height" style="width: 50px;" size="3" maxlength="5" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo  isset($content["media_height"]) ? $content["media_height"] : '' ?>" /></td>
 191                    <td class="chatlist">&nbsp;px</td>
 192                    <td><img src="img/leer.gif" alt="" width="30" height="1" /></td>
 193                    <td class="chatlist"><?php echo $BL['be_cnt_setsize'] ?>:&nbsp;</td>
 194                    <td><a href="javascript:;" title="<?php echo $BL['be_cnt_set1'] ?>" onclick="document.articlecontent.cmedia_width.value='160';document.articlecontent.cmedia_height.value='120';this.blur();return false;"><img src="img/button/video_160x120.gif" alt="" width="27" height="15" border="0" /></a></td>
 195                    <td><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 196                    <td><a href="javascript:;" title="<?php echo $BL['be_cnt_set2'] ?>" onclick="document.articlecontent.cmedia_width.value='240';document.articlecontent.cmedia_height.value='180';this.blur();return false;"><img src="img/button/video_240x180.gif" alt="" width="27" height="15" border="0" /></a></td>
 197                    <td><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 198                    <td><a href="javascript:;" title="<?php echo $BL['be_cnt_set3'] ?>" onclick="document.articlecontent.cmedia_width.value='320';document.articlecontent.cmedia_height.value='240';this.blur();return false;"><img src="img/button/video_320x240.gif" alt="" width="27" height="15" border="0" /></a></td>
 199                    <td><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 200                    <td><a href="javascript:;" title="<?php echo $BL['be_cnt_set4'] ?>" onclick="document.articlecontent.cmedia_width.value='480';document.articlecontent.cmedia_height.value='360';this.blur();return false;"><img src="img/button/video_480x360.gif" alt="" width="27" height="15" border="0" /></a></td>
 201                    <td><img src="img/leer.gif" alt="" width="6" height="1" /></td>
 202                    <td><a href="javascript:;" title="<?php echo $BL['be_cnt_set5'] ?>" onclick="document.articlecontent.cmedia_width.value='';document.articlecontent.cmedia_height.value='';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a></td>
 203                  </tr>
 204  </table><script language="JavaScript" type="text/javascript">
 205  <!--
 206  changeImagePos(<?php echo intval($content["media_pos"]) ?>);
 207  //-->
 208  </script></td></tr>
 209  
 210  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 211  
 212  <tr>
 213        <td align="right" class="chatlist"><?php echo $BL['alt_image'] ?>:&nbsp;</td>
 214        <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 215          <tr>
 216            <td><input name="cimage_name" type="text" id="cimage_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo html_specialchars($content["image_name"]) ?>" size="40" maxlength="250" onfocus="this.blur()" /></td>
 217            <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo  $BL['be_cnt_openimagebrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=0&amp;target=nolist','imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1)"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 218            <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo  $BL['be_cnt_delimage'] ?>" onclick="document.articlecontent.cimage_name.value='';document.articlecontent.cimage_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a>
 219              <input name="cimage_id" type="hidden" value="<?php echo $content["image_id"] ?>" /></td>
 220          </tr>
 221        </table></td>
 222  </tr>
 223  
 224  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 225  
 226  <tr>
 227    <td align="right" valign="top" class="chatlist tdtop4"><?php echo $BL['alt_text'] ?>:&nbsp;</td>
 228    <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 229        <tr>
 230          <td valign="top"><textarea name="cimage_caption" cols="30" rows="4" class="f11" id="cimage_caption" style="width: 300px;"><?php echo html_specialchars($content["image_caption"]) ?></textarea></td>
 231          <td valign="top"><img src="img/leer.gif" alt="" width="10" height="1" /></td>
 232          <td valign="top"><?php if($content["image_id"]): ?><img src="img/cmsimage.php/<?= $phpwcms["img_list_width"].'x'.$phpwcms["img_list_height"].'/'.$content["image_id"] ?>" border="0" /><?php endif; ?>&nbsp;</td>
 233        </tr>
 234    </table></td>
 235  </tr>
 236  
 237  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7