0 0

?

 -

  • , , (13)
  •     (3)
  •     (2)
  •     (2)
  •     (1)
  •    . (1)
  • (5)
  •     (1)
  •     (1)
  •     (1)
  •     (1)
  •     (1)
  • (5)
  •     (3)
  • (4)
  •     (2)
  •     (1)
  • Web-master (2)
  •    1 Bitrix (2)
  •     (1)
  • (1)
  •     (1)
  • (1)
  • (1)
  • (1)
  • (0)

 -

, , ,
   _

 - e-mail

 
.

 -

( : 1) _
( : 1) design_club

 -

 LiveInternet.ru:
: 27.11.2009
: 42
: 1
: 58
:

->
   _
: [2] 1 RSS -

(0)

. 2 2012

, 23 2012 . 16:17 () +

. , 2

. 2 : , . 13, "Crowne Plaza", "King".

16 . .

, ., -.

.


(0)

web-service c - 1C Bitrix

, 21 2012 . 14:52 () +

: - SharePoint , .

ws , spdoc -.

, #WORK_AREA#.

index.php

<?php

require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");

if (CModule::IncludeModule("webservice")) {

require($_SERVER["DOCUMENT_ROOT"] . "/ws/spdoc/spdoc.php");

$webservice = new CWebService();

if (!$webservice->RegisterWebService('CGenericWSDLSpdoc')) {

throw new Exception('Couldn't register webservice');

}

$result = $webservice->SOAPServerProcessRequest('spdoc.ws');

if (!$result) {

throw new Exception('Couldn't process request');

}

$response = $webservice->GetSOAPServerResponse('spdoc.ws');

echo $response;

} else {

throw new Exception('Couldn't initialize webservice');

}

wsdl.php web-service

<?php

ini_set('display_errors', 1);

require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");

if (CModule::IncludeModule("webservice") ) {

require($_SERVER["DOCUMENT_ROOT"] . "/ws/spdoc/spdoc.php");

$webservice = new CWebService();

if (!$webservice->RegisterWebService('CGenericWSDLSpdoc')) {

throw new Exception('Couldn't register webservice');

}

$wsdl = $webservice->GetWSDL('spdoc.ws');

if (!$wsdl) {

throw new Exception('Couldn't create WSDL');

}

echo $wsdl;

} else {

throw new Exception('Couldn't initialize webservice');

}

spdoc.php - .

<?php

class createFile

{

var $mimeType;

var $fileName;

var $fileSize;

var $fileContent;

}

class cInputSp

{

var $group; //

var $subject; //

var $method; //.

var $file_a; //

}

class CGenericWSDLSpdoc extends IWebService

{

var $paramInfoBlock = array(

'IBLOCK_ID' => 18, // ID

'IBLOCK_GROUP' => 19 // ID

);

function _trim(&$obInput){

$a_class = get_class($obInput);

$attribs = get_class_vars($a_class);

foreach ($attribs as $key=>$val){

if (is_string($obInput->$key)){

$obInput->$key = trim($obInput->$key);

}

}

}

function loadAttachFile ($file, $nameFile, &$errString) {

//

$this ->_trim($file);

if (empty($file->fileName) or $file->fileName == '?') return false; // file

if (empty($file->fileContent)) {$errString .= 'No file content: '.$file->fileName.'. '; return false;}

if (empty($file->mimeType)) {$errString .= 'No mime-type: '.$file->fileName.'. '; return false;}

$fileArray = array();

$tmpFile = $_SERVER["DOCUMENT_ROOT"]."/ws/spdoc/".$nameFile;

($f = fopen($tmpFile,'w+b')) or die('Error create temp file.' );

if (!$fileArray['size'] = fwrite($f,base64_decode($file->fileContent))) {$errString .= 'Error write temp file. '; return false;}

fclose($f);

$fileArray['name'] = $file->fileName;

$fileArray['tmp_name'] = $tmpFile;

$fileArray['type'] = $file->mimeType;

return $fileArray;

}

function publication($data)

{

global $USER;

$this ->_trim($data);

$errString = '';

if ( CModule::IncludeModule("iblock") ) {

// NUMBER . , SP.

//

// last number of publication

$arSelect = Array("ID", "PROPERTY_NUMBER");

$arFilter = Array("IBLOCK_ID" => $this->paramInfoBlock ['IBLOCK_ID'],"INCLUDE_SUBSECTIONS" => "Y");

global $DB;

$strSql = '

SELECT MAX(CAST(VALUE AS UNSIGNED)) AS max_num

FROM b_iblock_element_property AS a

INNER JOIN b_iblock_property AS b ON b.ID = a.IBLOCK_PROPERTY_ID

WHERE b.CODE = "NUMBER"

';

$NumberPubl = $DB->Query($strSql)->getNext();

$NumberPubl = $NumberPubl['max_num'] + 1;

// ,

$arSelect = Array("ID", "NAME");

$arFilter = Array("IBLOCK_ID" => $this->paramInfoBlock['IBLOCK_GROUP'],"INCLUDE_SUBSECTIONS" => "Y","NAME"=>$data->group);

$items = CIBlockElement::GetList(false, $arFilter, false, false, $arSelect);

$idGroup = 0;

if ($lastEl = $items->GetNextElement()){

$idGroup = $lastEl->fields['ID'];

}

else {

$el = new CIBlockElement;

$arLoadProductArray = Array(

"MODIFIED_BY" => $USER->GetID(), //

"IBLOCK_ID" => intval($this->paramInfoBlock ['IBLOCK_GROUP']),

"NAME" => $data->group,

"ACTIVE" => "Y", //

"PREVIEW_TEXT" => '',

"DETAIL_TEXT" => '',

);

$idGroup = $el->Add($arLoadProductArray);

}

//

$el = new CIBlockElement;

$PROP = array();

$PROP['NUMBER'] = $NumberPubl;

$PROP['METHOD'] = $data->method;

$PROP['GROUP'] = $idGroup;

if ($fileArray = $this->loadAttachFile($data->file_a, 'file_a', $errString) )

$PROP['FILE'] = $fileArray; //

$arLoadProductArray = Array(

"MODIFIED_BY" => $USER->GetID(), //

"IBLOCK_ID" => intval($this->paramInfoBlock ['IBLOCK_ID']),

"PROPERTY_VALUES" => $PROP,

"NAME" => $data->subject,

"ACTIVE" => "Y", //

"PREVIEW_TEXT" => '',

"DETAIL_TEXT" => '',

);

$product_id = 0;

if ($product_id = $el->Add($arLoadProductArray))

{return array('id' => intval($product_id),'errString'=> $errString);}

else

{return array('id' => intval($product_id),'errString'=> $errString.'Can not add record to DB');}

}

}

function delete($id)

{

if (CModule::IncludeModule("iblock")) {

if (!CIBlockElement::Delete($id)) {

return false;

}

else

return true;

}

}

function GetWebServiceDesc()

{

// web-service

$wsdesc = new CWebServiceDesc();

$wsdesc->wsname = "spdoc.ws";

$wsdesc->wsclassname = "CGenericWSDLSpdoc";

$wsdesc->wsdlauto = true;

$wsdesc->wsendpoint = 'http://'.$_SERVER['HTTP_HOST'].'/ws/spdoc/index.php';

$wsdesc->wstargetns = CWebService::GetDefaultTargetNS();

$wsdesc->classTypes = array();

$wsdesc->structTypes = array();

/* this tryed to be loaded into a class */

$wsdesc->classTypes["createFile"] =

array(

"mimeType" => array("varType" => "string", "strict" => "no"),// "strict" => "no" ,

"fileName" => array("varType" => "string", "strict" => "no"),

"fileSize" => array("varType" => "string", "strict" => "no"),

"fileContent" => array("varType" => "string", "strict" => "no"),

);

$wsdesc->classTypes["cInputSp"] =

array(

"group" => array("varType" => "string"),

"subject" => array("varType" => "string"),

"method" => array("varType" => "string"),

"file_a" => array("varType" => "createFile")

);

$wsdesc->classes = array(

"CGenericWSDLSpdoc" => array(

"delete" => array(

"type" => "public",

"name" => "delete",

"description" => "",

"input" => array(

"id" => array("varType" => "integer"),

),

"output" => array(

"result" => array("varType" => "boolean")

)

),

"publication" => array(

"type" => "public",

"name" => "publication",

"description" => "Adds item with data, [out] array(integer id, string errString if attached file have name and haven't content or mime type)

([in] class (

group - ,

subject - ,

method - ,

file_a - )",

"input" => array(

"data" => array("varType" => "cInputSp")

),

"output" => array(

"id" => array("varType" => "integer"),

"errString" => array("varType" => "string"),

)

)

));

return $wsdesc;

}

}

- Initial WSDL /ws/spdoc/wsdl.php

- , soapUI.

.

Web-master/1 Bitrix

(0)

, 27 2012 . 10:18 () +
___ [ + !]



.
– 71 98 . – (Ari Seth Cohen).
                   1.

140 (466x699, 94Kb)

2.
152 (466x698, 126Kb)

3.
177 (467x700, 84Kb)

«

, , /

(0)

, 22 2012 . 10:30 () +
Juliana-Juliana [ + !]

-






" . .":
. , , . , . !

1 -
2 - 16
...
5 - ? .
6 - , (part 1)
7 - -
8 - -. "".


/

(0)

>

, 20 2012 . 10:19 () +
_ [ + !]

. . -

!

. . , . - .

, , /

(0)

, , .

, 15 2012 . 10:15 () +
jokerjoe [ + !]

.., ...

getImage (640x426, 63Kb)

getImage (640x426, 73Kb)

/

(0)

, 06 2012 . 10:27 () +
[ + !]

/

(0)

0

, 03 2012 . 10:24 () +
Happy__baby [ + !]

40

( , ) – , , , , , – // , .
40    /1987155_scrpab (612x170, 126Kb)
, , /

(0)

, 09 2012 . 10:20 () +
[ + !]

2011 !

" " 2011 , 10 , ! ,   1 775 !

__________________________________________________

, , .

 

http://img-kiev.fotki.yandex.ru/get/5800/s-s-nega.2c/0_554e6_fb87514c_XXXL

http://img-kiev.fotki.yandex.ru/get/5805/bedey.c/0_64438_e5b8cccd_XXL

, , /.

(0)

, 09 2012 . 10:14 () +
Aspidistra1 [ + !]

2.





""


(0)

, 09 2012 . 10:09 () +
__ [ + !]

Jean - Pierre Gibrat.


2- Gibrat  (150x166, 13Kb)

Gibrat Jean Pierre , 14 1954 . , , , . . . . 70- , , 1975 1977 . , . .

**************

, ,

(0)

, 09 2012 . 10:06 () +
_ [ + !]

: !


. . , . . . . - , , , . . , , . . : , . , , . .



(0)

(2010)

, 28 2011 . 10:26 () +
natali2311 [ + !]

(2010)

1 (500x500, 42Kb) . , Adobe Photoshop, ! . , !

***
>>>
/

(0)

, 26 2011 . 10:28 () +
_ [ + !]

25

.

, , Lookatme. , , . , , . .



, - .


, .


-

. , .



, .


. .

, , . , .


, .


. .


, , , .


, , . , , .


, . .


.





, .


.



.





. - , .

.

: http://www.adme.ru/kreativnyj-obzor...go-goda-339855/

, , /

(0)

, 15 2011 . 10:32 () +
elfochka07 [ + !]



, ? , . , !


? , ? , , . - , : ( ), ( , , ).


, , , , . , . , :





  • () 2 ;

  • ;

  • 400 ;

  • ;

  • ;

  • ;

  • ;

  • ;

/

(0)

, 15 2011 . 10:16 () +
_1 [ + !]

, , /

(0)

, 08 2011 . 10:23 () +
orhideya6868 [ + !]

.


1 (509x690, 77Kb)
/

(0)

1C Bitrix

, 02 2011 . 18:42 () +

bitrix/components klient .

filter.

:

.description.php

<?

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

$arComponentDescription = array(

"CACHE_PATH" => "Y",

);

?>

.parameters.php

<?

if(!defined("B_PROLOG_INCLUDED")||B_PROLOG_INCLUDED!==true)die();

$arComponentParameters = array(

'PARAMETERS' => array(

'CACHE_TIME' => array('DEFAULT'=>3600),

),

);

?>

component.php

<?

if(CModule::IncludeModule("iblock"))

{

// IBLOCK_ID=22 ,

// .

// GetIBlockElementListEx, ,

// GetList , .

$arFilter = Array("IBLOCK_ID"=>22, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", "INCLUDE_SUBSECTIONS"=>"Y");

$items = CIBlockElement::GetList(Array(), $arFilter, false, false,array("ID","NAME"));

while ($enum_fields = $items->GetNext())

$arResult['BREND'][] = array(

"ID" => $enum_fields["ID"],

"NAME" => $enum_fields["NAME"],

);

}

$arResult["FORM_ACTION"] = isset($_SERVER['REQUEST_URI'])? htmlspecialchars($_SERVER['REQUEST_URI']): "";

$this->IncludeComponentTemplate();

?>

<?

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

$arComponentDescription = array(

"CACHE_PATH" => "Y",

);

?>

images - .

templates -

.default

style.css

.filter_name {margin: 10px;font-weight: bold;background-color: #F1F5FA;}

.filter_submit {margin: 20px 10px;}

template.php

<form action="<?$APPLICATION->GetCurDir();?>" method="GET">

<p class="filter_name">:</p>

<p class="filter_check">

<?foreach ($arResult['BREND'] as $key =>$brend):?>

<input type="checkbox" name="brend[]" value=<?=$brend['ID']?> <?if(@( in_array($brend['ID'], $_SESSION["brend"]))):?> checked <?endif?>><?=$brend['NAME']?><br>

<?endforeach;?>

</p>

<p class="filter_submit">

<input type="submit" value="" name="set_f">

<input type="submit" value="" name="del_f">

</p>

</form>

footer.php .

<?

$ttt = explode("/",$APPLICATION->GetCurDir());

$razdel = $ttt[1];

if ($razdel == "product_catalogue" || $razdel == "ready_catalogue"){

//

$APPLICATION->IncludeComponent("klient:filter", ".default", array(

"CACHE_TIME" => "3600"

),

false

);

}

?>

bitrix:catalog.

, .

.

arrFilterCat.

, arrFilterCat.

, $GLOBALS['arrFilterCat'] .

, section.php bitrix:catalog.section

if(!$GLOBALS['arrFilterCat']) GLOBAL $arrFilterCat;

if (isset($_GET["set_f"]))

{ $_SESSION["brend"] = $_GET['brend'];

}

if (isset($_SESSION["brend"])) $arrFilterCat['PROPERTY_BREND'] = $_SESSION['brend'];

if (isset($_GET["del_f"]))

{ unset($_SESSION["brend"]);

unset($arrFilterCat['PROPERTY_BREND']);

}

Web-master/1 Bitrix

(0)

, 01 2011 . 10:39 () +
Dushka_li [ + !]

" "


. . ! , " ".
/

(0)

, 01 2011 . 10:31 () +
_ [ + !]

/

(0)

, 30 2011 . 10:18 () +
bogdana_buldyak [ + !]

, , /

(0)

, 25 2011 . 10:26 () +
Irina_Snezhko [ + !]



3911698_10 (600x450, 46Kb)

.

, :)

, ,


   _
: [2] 1