ABA


"בבקשה תעזרו שניה בתרגום קוד"
גירסת הדפסה        
קבוצות דיון בניית אתרים נושא #8310 מנהל    סגן המנהל    מפקח   Winner    צל"ש   מומחה  
אשכול מספר 8310
MoonHunter
חבר מתאריך 1.8.02
680 הודעות
   20:07   28.12.03   
אל הפורום  
  בבקשה תעזרו שניה בתרגום קוד  
 
   ערכתי לאחרונה בתאריך 28.12.03 בשעה 20:23 בברכה, MoonHunter
 
אני לא בטוח שהדף צריך תירגום אבל אם כן אז בחלקים האלה..
אני לא בטוח אפ יש מה לתרגם אז אני כתבתי פה את החלקים שחשבתי שאולי יש בהם צורך לתירגום


//require_once( $mainframe->getPath( 'front_html', 'com_newsflash' ) );
$access = !$mainframe->getCfg( 'shownoauth' );

$now = date( "Y-m-d H:i:s", time()+$mosConfig_offset*60*60 );

class newsflash_html {
function WriteNewsflash( &$row ) {
?>
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td class="newsflash"><?php echo $row->content; ?></td


זה הקוד המלא אולי פיספסתי משהו
והאם אפשר להפוך את התאריך פה לעברית?

-----------------
הקוד השלם של הדף..
<html dir=rtl>
<?php
/// $Id: mod_newsflash.php,v 1.7 2003/12/03 20:56:34 rcastley Exp $
/**
* Newsflash Module
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.7 $
**/

defined( '_VALID_MOS' ) or die( 'מצטערים, אך הגישה לאזור זה חסומה.' );
global $gid, $mosConfig_offset;
// load the html drawing class, MUST include the option for components
//require_once( $mainframe->getPath( 'front_html', 'com_newsflash' ) );
$access = !$mainframe->getCfg( 'shownoauth' );

$now = date( "Y-m-d H:i:s", time()+$mosConfig_offset*60*60 );

$database->setQuery( "SELECT COUNT(*) AS numrows"
."\nFROM #__newsflash"
."\nWHERE published=1"
."\nAND access <= $gid "
."\nAND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now') "
."\nAND (publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now')"
);

$numrows = $database->loadResult();
if ($numrows > 1) {
mt_srand( (double) microtime()*1000000 );
$flashnum = mt_rand( 0, --$numrows );
} else {
$flashnum = 0;
}

$database->setQuery( "SELECT content"
."\nFROM #__newsflash"
."\nWHERE published=1"
."\nAND access <= $gid "
."\nAND (publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now') "
."\nAND (publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now')"
."\n LIMIT $flashnum,1"
);

$row = null;

if ($database->loadObject( $row )) {
newsflash_html::WriteNewsflash( $row );
}

class newsflash_html {
function WriteNewsflash( &$row ) {
?>
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td class="newsflash"><?php echo $row->content; ?></td>
</tr>
</table>
<?php
}
}
?>


תודה מראש


                                שתף        
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

תגובה מהירה
___________________________________________________________________

___________________________________________________________________
למנהלים:  נעל | תייק בארכיון | מחק | העבר לפורום אחר | מחק תגובות | עגן אשכול
       



© כל הזכויות שמורות ל-רוטר.נט בע"מ rotter.net