.  

 

 

.
.

24 / 04 / 2014

Usuarios conectados: 6

Cargando documento...

Buscar:

.

Este Sitio:

Principal

Dreamweaver

Fireworks

JavaScript

CSS

Sonido

Artículos

Links

E-ufemismos

Descargas

Historial

 

Mailing List:

Suscríbete a la lista de correo, No practico spamming y ofrece algunas ventajas.

Pulsa aquí para saber más y suscribirte.

 

Recomendados:

Tecnorama >Dreamweaver Extensions

 

PHP Server Formats

Versión para imprimir | Translate this page

 Macromedia Approved Extension. Dreamweaver MX, MX2004, DW8, CS3, CS4, CS5 and CS5.5 compatible: This extension adds more server formats to the "Format" column in the Data Bindings Panel. You'll have noticed that DWMX only offers a few Server Formats: Trim, AlphaCase and Enconde. This extension adds another 34 Server Formats, for text, numbers, currency and Date/Time. Some of them can be quite useful (newlines to BR and currency formats, for example) and some can be just curious(Reversed Text, for example)

All of them can be used with any of the items than can be inserted from the Data Bindings Panel: Recordset Fields, Form Variables, URL Variables, Cookie Variables...

Text:

  • Count Num of Characters: When used, the document will display the number of characters of the selected item.
  • NewLine to BR: If you have a textarea for user input, you will have noticed that the returned text won't show the carriage returns. This format will transform those carriage returns in <BR> tags, so the content will be displayed as it was introduced.
  • HTML As Text: This server format will display the HTML tags the text could have: Hello World will be displayed as <B>Hello World</BR>.
  • Strip HTML Tags: This server format will remove the HTML tags the text could have:Hello Worldwill be displayed as Hello World.
  • Reversed Text: It will display the text written from Right to Left

Numeric: 4 Server Formats:

  • Binary To Decimal: It will display the Decimal value of a binary number.
  • Decimal To Binary: It will display the binary value of a decimal number.
  • Decimal To Hex: It will display the Hexadecimal value of a Decimal number.
  • Hex to Decimal: It will display the Decimal value of a Hexadecimal number.

Currency formats: 6 Formats

  • 3 formats with thousand separated by a comma and decimals separated by a dot. you can choose among 0,1 or 2 decimals.
  • 3 formats with thousands separated by a dot and decimals separated by a comma. Again you can choose among 0, 1 or 2 decimals.

Date / Time formats: 18 Server formats to display Unix Timestamps and MySQL Date/Time fields: They are separated in Date formats and Time formats. If you want to add, for example the date and time, you simply have to add the same item twice and apply a different format to each of them (one to display the date and the second to display the time)

All these formats will be shown in the column "Format" in the Data Bindings Panel (See picture):

Nov, 23 2009: Version 1.3.1 (current version):
Fixed translator's bugs with non recordset bindings (URL,Post, session and cookies params).

May, 11 2007: Version 1.2.2:
Support for Dreamweaver CS3 and CS4

Sep, 02 2003: New in version 1.2.1:
-Translator's bug solved (See users' comments below):
The translator wouldn't work with time formats applied to recordset values. Fixed in this version. 

Feb, 13 2003: New in version 1.2.0:
- Date and time formats for MySQL Date/Time fields:
Just select the "Date/Time (MySQL)" menu in the drop down menu. No support for the "timestamp" field yet, sorry; You'll have to use the UNIX_TIMESTAMP() function in your queries (see the tutorial)
- A simple translator has been added as well: now you'll have a visual help in design view, instead of the yellow php shield (it's working this time).

Now, you can read this short tutorial about how to make the extension work with MySQL Timestamp Types (not supported yet, only Date/Time fields). It's easier than you think.

Version Compatibilities
Dreamweaver MX PHP Server Formats 1.2.1 (Download)
Dreamweaver MX 2004
Dreamweaver 8
Dreamweaver CS3 PHP Server Formats 1.3.1 (Download)
Dreamweaver CS4
Dreamweaver CS5
Dreamweaver CS5.5

Comments? 82, so far. Displaying 46 ->50

46.- Had v1.2.1 working with Dreamweaver 8, upgraded to CSS and installed v1.2.2, but date formats now don't work.

Tecnorama says: They are working for me... Have you chosen the right format (mysql/unix)?

47.- Currency format doesn't work with "double" when updating the database. Only the numbers before the comma are inserted into the field.

48.- u have error in this page...http://www.tecnorama.org/document.php?id_doc=51 bisht_rs@rediffmail.com

error is:
line: 5
char: 2
Error: object dosen't support this property or method
Code: 0
URL: http://www.tecnorama.org/document.php?id_doc=51

Tecnorama says: Sorry, but I've tested it with Firefox and IE6 and no errors are thrown...

49.- I have tried the hard way to get them to work with PHP_ADODB successfully. I've also found that they initially seem to work with PHAKt2, ImpAKT and NeXTensio. I can create a form or a list I have working and apply the formats, and they work with no bad results.

The only thing that does not work is that when you apply the Date, it can turn the display into a PHP icon instead of the result field showing, though it is still listed. In NeXTension, when you apply a date, it disappears from the list until you remove the code and reset it to htmlentities.

The other thing is that when you apply these, they show up as None as the format, while if you pick one of the ones that are present by default, the pick stays.

Even with the oddities, doing the change, the hard way, does allow you to apply these sets of formatting, with some limitations, and seemingly without harm occuring.

50.- This is exactly whatr i need, but im using dreamweaver mx 2004 and i cant seem 2 locate where i have to go to use it. please where is the 'data bindings panel'? i need to convert newlines to
Hope i get help soon as im going crazy!!!

Tecnorama says: Ctrl+F10 will open Bindings Panel (Windows)

« Previous | 21 - 25 | 26 - 30 | 31 - 35 | 36 - 40 | 41 - 45 | 46 - 50 | 51 - 55 | 56 - 60 | 61 - 65 | 66 - 70 | Next »

Add your Comments



Escribe el código de la imagen superior:

:

TECNORAMA es simplemente una página personal. No sirve ni de promoción del autor ni cosas por el estilo.
Todos los códigos, textos y tutoriales son de libre uso mientras se mencione al autor (no es mucho pedir)
Este sitio es compatible con IE6/NS6/Mozilla1.0
Para contactar, puedes enviarme un e-mail a tecnorama@hotmail.com